The BrickColor data type defines a pre-set color. Unlike Color3, BrickColor is limited to a set of 208 colors. A BrickColor value can be constructed using the numerical index or name of a specific BrickColor, or using numbers as RGB values or a Color3 value which will be matched to the closest BrickColor. Creating a BrickColor with a name or a numerical index that is not in the set of BrickColors results in "Medium stone grey" (194).
Previously, BrickColor was the primary data type for parts' color. Compared to Color3, it uses less storage because it is stored as a single numerical index. Later, the Color3 property for setting a part's color was introduced.
History[]
At the time of Roblox's release, there were originally 32 BrickColors in Roblox Studio's palette.
On April 2, 2009, Roblox introduced 32 more colors to the palette, resulting in total of 64.[1]
In August 2015, the palette is changed to a hexagon shape as well as 64 more colors, resulting in total of 128.[2]
Data type[]
Constructors[]
- BrickColor.new(val: number)
- Constructs a BrickColor from its numerical index. If the BrickColor does not exist, it returns "Medium stone grey" (194).
- BrickColor.new(name: string)
- Constructs a BrickColor from its name. If the BrickColor does not exist, it returns "Medium stone grey" (194).
- BrickColor.new(r: number, g: number, b: number)
- Constructs the closest BrickColor to the specified RGB components, each value being a number between 0 and 1.
- BrickColor.new(color: Color3)
- Constructs the closest BrickColor to the specified Color3.
- BrickColor.random()
- Returns a random BrickColor.
- BrickColor.White()
- Returns the "White" (1) BrickColor.
- BrickColor.Gray()
- Returns the "Medium stone grey" (194) BrickColor.
- BrickColor.DarkGray()
- Returns the "Dark stone grey" (199) BrickColor.
- BrickColor.Black()
- Returns the "Black" (26) BrickColor.
- BrickColor.Red()
- Returns the "Bright red" (21) BrickColor.
- BrickColor.Yellow()
- Returns the "Bright yellow" (24) BrickColor.
- BrickColor.Green()
- Returns the "Dark green" (28) BrickColor.
- BrickColor.Blue()
- Returns the "Bright blue" (23) BrickColor.
Properties[]
- r number
- The red component of the BrickColor (between 0 and 1).
- g number
- The green component of the BrickColor (between 0 and 1).
- b number
- The blue component of the BrickColor (between 0 and 1).
- Number number
- The numerical index of the BrickColor.
- Name string
- The name of the BrickColor.
- Color Color3
- The Color3 of the BrickColor.
List of BrickColors[]
There are 208 colors in total, 128 of which are in Roblox Studio's palette.
# | Name | RGB Value | Color | Palette | Notes |
---|---|---|---|---|---|
1 | White | 242 243 243 | Yes | ||
2 | Grey | 161 165 162 | No | ||
3 | Light yellow | 249 233 153 | No | ||
5 | Brick yellow | 215 197 154 | Yes | ||
6 | Light green (Mint) | 194 218 184 | No | ||
9 | Light reddish violet | 232 186 200 | Yes | ||
11 | Pastel Blue | 128 187 219 | Yes | ||
12 | Light orange brown | 203 132 66 | No | ||
18 | Nougat | 204 142 105 | Yes | ||
21 | Bright red | 196 40 28 | Yes | ||
22 | Med. reddish violet | 196 112 160 | No | ||
23 | Bright blue | 13 105 172 | Yes | ||
24 | Bright yellow | 245 205 48 | Yes | ||
25 | Earth orange | 98 71 50 | No | ||
26 | Black | 27 42 53 | Yes | ||
27 | Dark grey | 109 110 108 | No | ||
28 | Dark green | 40 127 71 | Yes | ||
29 | Medium green | 161 196 140 | Yes | ||
36 | Lig. Yellowich orange | 243 207 155 | No | ||
37 | Bright green | 75 151 75 | Yes | ||
38 | Dark orange | 160 95 53 | Yes | ||
39 | Light bluish violet | 193 202 222 | No | ||
40 | Transparent | 236 236 236 | No | ||
41 | Tr. Red | 205 84 75 | No | ||
42 | Tr. Lg blue | 193 223 240 | No | ||
43 | Tr. Blue | 123 182 232 | No | ||
44 | Tr. Yellow | 247 241 141 | No | ||
45 | Light blue | 180 210 228 | Yes | ||
47 | Tr. Flu. Reddish orange | 217 133 108 | No | ||
48 | Tr. Green | 132 182 141 | No | ||
49 | Tr. Flu. Green | 248 241 132 | No | ||
50 | Phosph. White | 236 232 222 | No | ||
100 | Light red | 238 196 182 | No | ||
101 | Medium red | 218 134 122 | Yes | ||
102 | Medium blue | 110 153 202 | Yes | ||
103 | Light grey | 199 193 183 | No | ||
104 | Bright violet | 107 50 124 | Yes | ||
105 | Br. yellowish orange | 226 155 64 | Yes | ||
106 | Bright orange | 218 133 65 | Yes | ||
107 | Bright bluish green | 0 143 156 | Yes | ||
108 | Earth yellow | 104 92 67 | No | ||
110 | Bright bluish violet | 67 84 147 | No | ||
111 | Tr. Brown | 191 183 177 | No | ||
112 | Medium bluish violet | 104 116 172 | No | ||
113 | Tr. Medi. reddish violet | 229 173 200 | No | ||
115 | Med. yellowish green | 199 210 60 | No | ||
116 | Med. bluish green | 85 165 175 | No | ||
118 | Light bluish green | 183 215 213 | No | ||
119 | Br. yellowish green | 164 189 71 | Yes | ||
120 | Lig. yellowish green | 217 228 167 | No | ||
121 | Med. yellowish orange | 231 172 88 | No | ||
123 | Br. reddish orange | 211 111 76 | No | ||
124 | Bright reddish violet | 146 57 120 | No | ||
125 | Light orange | 234 184 146 | Yes | ||
126 | Tr. Bright bluish violet | 165 165 203 | No | ||
127 | Gold | 220 188 129 | No | Shares name with 333 (BrickColor.new returns 333) | |
128 | Dark nougat | 174 122 89 | No | ||
131 | Silver | 156 163 168 | No | ||
133 | Neon orange | 213 115 61 | Yes | ||
134 | Neon green | 216 221 86 | No | ||
135 | Sand blue | 116 134 157 | Yes | ||
136 | Sand violet | 135 124 144 | No | ||
137 | Medium orange | 224 152 100 | No | ||
138 | Sand yellow | 149 138 115 | No | ||
140 | Earth blue | 32 58 86 | No | ||
141 | Earth green | 39 70 45 | Yes | ||
143 | Tr. Flu. Blue | 207 226 247 | No | ||
145 | Sand blue metallic | 121 136 161 | No | ||
146 | Sand violet metallic | 149 142 163 | No | ||
147 | Sand yellow metallic | 147 135 103 | No | ||
148 | Dark grey metallic | 87 88 87 | No | ||
149 | Black metallic | 22 29 50 | No | ||
150 | Light grey metallic | 171 173 172 | No | ||
151 | Sand green | 120 144 130 | Yes | ||
153 | Sand red | 149 121 119 | Yes | ||
154 | Dark red | 123 46 47 | No | ||
157 | Tr. Flu. Yellow | 255 246 123 | No | ||
158 | Tr. Flu. Red | 225 164 194 | No | ||
168 | Gun metallic | 117 108 98 | No | ||
176 | Red flip/flop | 151 105 91 | No | ||
178 | Yellow flip/flop | 180 132 85 | No | ||
179 | Silver flip/flop | 137 135 136 | No | ||
180 | Curry | 215 169 75 | No | ||
190 | Fire Yellow | 249 214 46 | No | ||
191 | Flame yellowish orange | 232 171 45 | No | ||
192 | Reddish brown | 105 64 40 | Yes | ||
193 | Flame reddish orange | 207 96 36 | No | ||
194 | Medium stone grey | 163 162 165 | Yes | ||
195 | Royal blue | 70 103 164 | No | ||
196 | Dark Royal blue | 35 71 139 | No | ||
198 | Bright reddish lilac | 142 66 133 | No | ||
199 | Dark stone grey | 99 95 98 | Yes | ||
200 | Lemon metalic | 130 138 93 | No | ||
208 | Light stone grey | 229 228 223 | Yes | ||
209 | Dark Curry | 176 142 68 | No | ||
210 | Faded green | 112 149 120 | No | ||
211 | Turquoise | 121 181 181 | No | ||
212 | Light Royal blue | 159 195 233 | No | ||
213 | Medium Royal blue | 108 129 183 | No | ||
216 | Rust | 144 76 42 | No | Shares name with 345 (BrickColor.new returns 345) | |
217 | Brown | 124 92 70 | Yes | ||
218 | Reddish lilac | 150 112 159 | No | ||
219 | Lilac | 107 98 155 | No | Shares name with 321 (BrickColor.new returns 321) | |
220 | Light lilac | 167 169 206 | No | ||
221 | Bright purple | 205 98 152 | No | ||
222 | Light purple | 228 173 200 | No | ||
223 | Light pink | 220 144 149 | No | ||
224 | Light brick yellow | 240 213 160 | No | ||
225 | Warm yellowish orange | 235 184 127 | No | ||
226 | Cool yellow | 253 234 141 | Yes | ||
232 | Dove blue | 125 187 221 | No | ||
268 | Medium lilac | 52 43 117 | No | ||
301 | Slime green | 80 109 84 | Yes | ||
302 | Smoky grey | 91 93 105 | Yes | ||
303 | Dark blue | 0 16 176 | Yes | ||
304 | Parsley green | 44 101 29 | Yes | ||
305 | Steel blue | 82 124 174 | Yes | ||
306 | Storm blue | 51 88 130 | Yes | ||
307 | Lapis | 16 42 220 | Yes | ||
308 | Dark indigo | 61 21 133 | Yes | ||
309 | Sea green | 52 142 64 | Yes | ||
310 | Shamrock | 91 154 76 | Yes | ||
311 | Fossil | 159 161 172 | Yes | ||
312 | Mulberry | 89 34 89 | Yes | ||
313 | Forest green | 31 128 29 | Yes | ||
314 | Cadet blue | 159 173 192 | Yes | ||
315 | Electric blue | 9 137 207 | Yes | ||
316 | Eggplant | 123 0 123 | Yes | ||
317 | Moss | 124 156 107 | Yes | ||
318 | Artichoke | 138 171 133 | Yes | ||
319 | Sage green | 185 196 177 | Yes | ||
320 | Ghost grey | 202 203 209 | Yes | ||
321 | Lilac | 167 94 155 | Yes | Shares name with 219 (BrickColor.new returns 321) | |
322 | Plum | 123 47 123 | Yes | ||
323 | Olivine | 148 190 129 | Yes | ||
324 | Laurel green | 168 189 153 | Yes | ||
325 | Quill grey | 223 223 222 | Yes | ||
327 | Crimson | 151 0 0 | Yes | ||
328 | Mint | 177 229 166 | Yes | ||
329 | Baby blue | 152 194 219 | Yes | ||
330 | Carnation pink | 255 152 220 | Yes | ||
331 | Persimmon | 255 89 89 | Yes | ||
332 | Maroon | 117 0 0 | Yes | ||
333 | Gold | 239 184 56 | Yes | Shares name with 127 (BrickColor.new returns 333) | |
334 | Daisy orange | 248 217 109 | Yes | ||
335 | Pearl | 231 231 236 | Yes | ||
336 | Fog | 199 212 228 | Yes | ||
337 | Salmon | 255 148 148 | Yes | ||
338 | Terra Cotta | 190 104 98 | Yes | ||
339 | Cocoa | 86 36 36 | Yes | ||
340 | Wheat | 241 231 199 | Yes | ||
341 | Buttermilk | 254 243 187 | Yes | ||
342 | Mauve | 224 178 208 | Yes | ||
343 | Sunrise | 212 144 189 | Yes | ||
344 | Tawny | 150 85 85 | Yes | ||
345 | Rust | 143 76 42 | Yes | Shares name with 216 (BrickColor.new returns 345) | |
346 | Cashmere | 211 190 150 | Yes | ||
347 | Khaki | 226 220 188 | Yes | ||
348 | Lily white | 237 234 234 | Yes | ||
349 | Seashell | 233 218 218 | Yes | ||
350 | Burgundy | 136 62 62 | Yes | ||
351 | Cork | 188 155 93 | Yes | ||
352 | Burlap | 199 172 120 | Yes | ||
353 | Beige | 202 191 163 | Yes | ||
354 | Oyster | 187 179 178 | Yes | ||
355 | Pine Cone | 108 88 75 | Yes | ||
356 | Fawn brown | 160 132 79 | Yes | ||
357 | Hurricane grey | 149 137 136 | Yes | ||
358 | Cloudy grey | 171 168 158 | Yes | ||
359 | Linen | 175 148 131 | Yes | ||
360 | Copper | 150 103 102 | Yes | ||
361 | Medium brown | 86 66 54 | Yes | ||
362 | Bronze | 126 104 63 | Yes | ||
363 | Flint | 105 102 92 | Yes | ||
364 | Dark taupe | 90 76 66 | Yes | ||
365 | Burnt Sienna | 106 57 9 | Yes | ||
1001 | Institutional white | 248 248 248 | Yes | ||
1002 | Mid gray | 205 205 205 | Yes | ||
1003 | Really black | 17 17 17 | Yes | ||
1004 | Really red | 255 0 0 | Yes | ||
1005 | Deep orange | 255 176 0 | Yes | Shares name with 1017 (BrickColor.new returns 1005) | |
1006 | Alder | 180 128 255 | Yes | ||
1007 | Dusty Rose | 163 75 75 | Yes | ||
1008 | Olive | 193 190 66 | Yes | ||
1009 | New Yeller | 255 255 0 | Yes | ||
1010 | Really blue | 0 0 255 | Yes | ||
1011 | Navy blue | 0 32 96 | Yes | ||
1012 | Deep blue | 33 84 185 | Yes | ||
1013 | Cyan | 4 175 236 | Yes | ||
1014 | CGA brown | 170 85 0 | Yes | ||
1015 | Magenta | 170 0 170 | Yes | ||
1016 | Pink | 255 102 204 | Yes | ||
1017 | Deep orange | 255 175 0 | No | Shares name with 1005 (BrickColor.new returns 1005) | |
1018 | Teal | 18 238 212 | Yes | ||
1019 | Toothpaste | 0 255 255 | Yes | ||
1020 | Lime green | 0 255 0 | Yes | ||
1021 | Camo | 58 125 21 | Yes | ||
1022 | Grime | 127 142 100 | Yes | ||
1023 | Lavender | 140 91 159 | Yes | ||
1024 | Pastel light blue | 175 221 255 | Yes | ||
1025 | Pastel orange | 255 201 201 | Yes | ||
1026 | Pastel violet | 177 167 255 | Yes | ||
1027 | Pastel blue-green | 159 243 233 | Yes | ||
1028 | Pastel green | 204 255 204 | Yes | ||
1029 | Pastel yellow | 255 255 204 | Yes | ||
1030 | Pastel brown | 255 204 153 | Yes | ||
1031 | Royal purple | 98 37 209 | Yes | ||
1032 | Hot pink | 255 0 191 | Yes |
Referenced by[]
- (value)
- (value)
- (removed)
Trivia[]
This section is a trivia section. Please relocate any relevant information into other sections of the article.
- In an unknown date of 2017, BaseParts were changed to allow BrickColors or Color3s to set the color, instead of just BrickColors.
References[]
- ↑ Shedletsky, John (2009, April 2). "Sixty Four is the New Thirty Two". From Roblox Blog. Accessed February 12, 2023. Archived from the original on August 27, 2022.
- ↑ Forumite (2015, August 11). "ROBLOX expanded color palette in studio.". From Reddit. Archived from the original on February 12, 2023.
External links[]
Basic Lua types | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Roblox types |
| ||||||||||||||||||||||||||
API reference only |