Roblox API Reference

BrickColor On DevHub

Represents a color from a predefined collection.

Details

The following BrickColor table lists the defined colors:

NumberNameColor (rgb)Color (hex)ColorPalette IndexNotes
1White 242, 243, 243#F2F3F3
87
2Grey 161, 165, 162#A1A5A2
3Light yellow 249, 233, 153#F9E999
5Brick yellow 215, 197, 154#D7C59A
109
6Light green (Mint) 194, 218, 184#C2DAB8
9Light reddish violet 232, 186, 200#E8BAC8
88
11Pastel Blue 128, 187, 219#80BBDB
51
12Light orange brown 203, 132, 66#CB8442
18Nougat 204, 142, 105#CC8E69
110
21Bright red 196, 40, 28#C4281C
68
22Med. reddish violet 196, 112, 160#C470A0
23Bright blue 13, 105, 172#0D69AC
21
24Bright yellow 245, 205, 48#F5CD30
71
25Earth orange 98, 71, 50#624732
26Black 27, 42, 53#1B2A35
3
27Dark grey 109, 110, 108#6D6E6C
28Dark green 40, 127, 71#287F47
8
29Medium green 161, 196, 140#A1C48C
59
36Lig. Yellowich orange 243, 207, 155#F3CF9B
37Bright green 75, 151, 75#4B974B
25
38Dark orange 160, 95, 53#A05F35
119
39Light bluish violet 193, 202, 222#C1CADE
40Transparent 236, 236, 236#ECECEC
41Tr. Red 205, 84, 75#CD544B
42Tr. Lg blue 193, 223, 240#C1DFF0
43Tr. Blue 123, 182, 232#7BB6E8
44Tr. Yellow 247, 241, 141#F7F18D
45Light blue 180, 210, 228#B4D2E4
63
47Tr. Flu. Reddish orange 217, 133, 108#D9856C
48Tr. Green 132, 182, 141#84B68D
49Tr. Flu. Green 248, 241, 132#F8F184
50Phosph. White 236, 232, 222#ECE8DE
100Light red 238, 196, 182#EEC4B6
101Medium red 218, 134, 122#DA867A
101
102Medium blue 110, 153, 202#6E99CA
20
103Light grey 199, 193, 183#C7C1B7
104Bright violet 107, 50, 124#6B327C
44
105Br. yellowish orange 226, 155, 64#E29B40
94
106Bright orange 218, 133, 65#DA8541
83
107Bright bluish green 0, 143, 156#008F9C
2
108Earth yellow 104, 92, 67#685C43
110Bright bluish violet 67, 84, 147#435493
111Tr. Brown 191, 183, 177#BFB7B1
112Medium bluish violet 104, 116, 172#6874AC
113Tr. Medi. reddish violet229, 173, 200#E5ADC8
115Med. yellowish green 199, 210, 60#C7D23C
116Med. bluish green 85, 165, 175#55A5AF
118Light bluish green 183, 215, 213#B7D7D5
119Br. yellowish green 164, 189, 71#A4BD47
46
120Lig. yellowish green 217, 228, 167#D9E4A7
121Med. yellowish orange 231, 172, 88#E7AC58
123Br. reddish orange 211, 111, 76#D36F4C
124Bright reddish violet 146, 57, 120#923978
125Light orange 234, 184, 146#EAB892
100
126Tr. Bright bluish violet165, 165, 203#A5A5CB
127Gold 220, 188, 129#DCBC81
Shares Name with 333 (BrickColor.new returns 333)
128Dark nougat 174, 122, 89#AE7A59
131Silver 156, 163, 168#9CA3A8
133Neon orange 213, 115, 61#D5733D
82
134Neon green 216, 221, 86#D8DD56
135Sand blue 116, 134, 157#74869D
19
136Sand violet 135, 124, 144#877C90
137Medium orange 224, 152, 100#E09864
138Sand yellow 149, 138, 115#958A73
140Earth blue 32, 58, 86#203A56
141Earth green 39, 70, 45#27462D
0
143Tr. Flu. Blue 207, 226, 247#CFE2F7
145Sand blue metallic 121, 136, 161#7988A1
146Sand violet metallic 149, 142, 163#958EA3
147Sand yellow metallic 147, 135, 103#938767
148Dark grey metallic 87, 88, 87#575857
149Black metallic 22, 29, 50#161D32
150Light grey metallic 171, 173, 172#ABADAC
151Sand green 120, 144, 130#789082
34
153Sand red 149, 121, 119#957977
114
154Dark red 123, 46, 47#7B2E2F
157Tr. Flu. Yellow 255, 246, 123#FFF67B
158Tr. Flu. Red 225, 164, 194#E1A4C2
168Gun metallic 117, 108, 98#756C62
176Red flip/flop 151, 105, 91#97695B
178Yellow flip/flop 180, 132, 85#B48455
179Silver flip/flop 137, 135, 136#898788
180Curry 215, 169, 75#D7A94B
190Fire Yellow 249, 214, 46#F9D62E
191Flame yellowish orange 232, 171, 45#E8AB2D
192Reddish brown 105, 64, 40#694028
103
193Flame reddish orange 207, 96, 36#CF6024
194Medium stone grey 163, 162, 165#A3A2A5
123
195Royal blue 70, 103, 164#4667A4
196Dark Royal blue 35, 71, 139#23478B
198Bright reddish lilac 142, 66, 133#8E4285
199Dark stone grey 99, 95, 98#635F62
122
200Lemon metalic 130, 138, 93#828A5D
208Light stone grey 229, 228, 223#E5E4DF
62
209Dark Curry 176, 142, 68#B08E44
210Faded green 112, 149, 120#709578
211Turquoise 121, 181, 181#79B5B5
212Light Royal blue 159, 195, 233#9FC3E9
213Medium Royal blue 108, 129, 183#6C81B7
216Rust 144, 76, 42#904C2A
Shares Name with 345 (BrickColor.new returns 345)
217Brown 124, 92, 70#7C5C46
111
218Reddish lilac 150, 112, 159#96709F
219Lilac 107, 98, 155#6B629B
Shares Name with 321 (BrickColor.new returns 321)
220Light lilac 167, 169, 206#A7A9CE
221Bright purple 205, 98, 152#CD6298
222Light purple 228, 173, 200#E4ADC8
223Light pink 220, 144, 149#DC9095
224Light brick yellow 240, 213, 160#F0D5A0
225Warm yellowish orange 235, 184, 127#EBB87F
226Cool yellow 253, 234, 141#FDEA8D
73
232Dove blue 125, 187, 221#7DBBDD
268Medium lilac 52, 43, 117#342B75
301Slime green 80, 109, 84#506D54
1
302Smoky grey 91, 93, 105#5B5D69
10
303Dark blue 0, 16, 176#0010B0
5
304Parsley green 44, 101, 29#2C651D
7
305Steel blue 82, 124, 174#527CAE
11
306Storm blue 51, 88, 130#335882
12
307Lapis 16, 42, 220#102ADC
13
308Dark indigo 61, 21, 133#3D1585
14
309Sea green 52, 142, 64#348E40
16
310Shamrock 91, 154, 76#5B9A4C
17
311Fossil 159, 161, 172#9FA1AC
29
312Mulberry 89, 34, 89#592259
23
313Forest green 31, 128, 29#1F801D
24
314Cadet blue 159, 173, 192#9FADC0
39
315Electric blue 9, 137, 207#0989CF
30
316Eggplant 123, 0, 123#7B007B
33
317Moss 124, 156, 107#7C9C6B
35
318Artichoke 138, 171, 133#8AAB85
36
319Sage green 185, 196, 177#B9C4B1
37
320Ghost grey 202, 203, 209#CACBD1
50
321Lilac 167, 94, 155#A75E9B
42Shares Name with 219 (BrickColor.new returns 321)
322Plum 123, 47, 123#7B2F7B
43
323Olivine 148, 190, 129#94BE81
47
324Laurel green 168, 189, 153#A8BD99
48
325Quill grey 223, 223, 222#DFDFDE
49
327Crimson 151, 0, 0#970000
56
328Mint 177, 229, 166#B1E5A6
60
329Baby blue 152, 194, 219#98C2DB
64
330Carnation pink 255, 152, 220#FF98DC
65
331Persimmon 255, 89, 89#FF5959
66
332Maroon 117, 0, 0#750000
69
333Gold 239, 184, 56#EFB838
70Shares Name with 127 (BrickColor.new returns 333)
334Daisy orange 248, 217, 109#F8D96D
72
335Pearl 231, 231, 236#E7E7EC
75
336Fog 199, 212, 228#C7D4E4
76
337Salmon 255, 148, 148#FF9494
90
338Terra Cotta 190, 104, 98#BE6862
79
339Cocoa 86, 36, 36#562424
81
340Wheat 241, 231, 199#F1E7C7
84
341Buttermilk 254, 243, 187#FEF3BB
85
342Mauve 224, 178, 208#E0B2D0
77
343Sunrise 212, 144, 189#D490BD
78
344Tawny 150, 85, 85#965555
91
345Rust 143, 76, 42#8F4C2A
92Shares Name with 216 (BrickColor.new returns 345)
346Cashmere 211, 190, 150#D3BE96
95
347Khaki 226, 220, 188#E2DCBC
96
348Lily white 237, 234, 234#EDEAEA
97
349Seashell 233, 218, 218#E9DADA
98
350Burgundy 136, 62, 62#883E3E
102
351Cork 188, 155, 93#BC9B5D
104
352Burlap 199, 172, 120#C7AC78
105
353Beige 202, 191, 163#CABFA3
106
354Oyster 187, 179, 178#BBB3B2
107
355Pine Cone 108, 88, 75#6C584B
112
356Fawn brown 160, 132, 79#A0844F
113
357Hurricane grey 149, 137, 136#958988
115
358Cloudy grey 171, 168, 158#ABA89E
116
359Linen 175, 148, 131#AF9483
117
360Copper 150, 103, 102#966766
118
361Dirt brown 86, 66, 54#564236
120
362Bronze 126, 104, 63#7E683F
121
363Flint 105, 102, 92#69665C
124
364Dark taupe 90, 76, 66#5A4C42
125
365Burnt Sienna 106, 57, 9#6A3909
126
1001Institutional white 248, 248, 248#F8F8F8
86
1002Mid gray 205, 205, 205#CDCDCD
108
1003Really black 17, 17, 17#111111
127
1004Really red 255, 0, 0#FF0000
67
1005Deep orange 255, 176, 0#FFB000
57Shares Name with 1017 (BrickColor.new returns 1005)
1006Alder 180, 128, 255#B480FF
41
1007Dusty Rose 163, 75, 75#A34B4B
80
1008Olive 193, 190, 66#C1BE42
45
1009New Yeller 255, 255, 0#FFFF00
58
1010Really blue 0, 0, 255#0000FF
22
1011Navy blue 0, 32, 96#002060
6
1012Deep blue 33, 84, 185#2154B9
4
1013Cyan 4, 175, 236#04AFEC
40
1014CGA brown 170, 85, 0#AA5500
93
1015Magenta 170, 0, 170#AA00AA
55
1016Pink 255, 102, 204#FF66CC
53
1017Deep orange 255, 175, 0#FFAF00
Shares Name with 1005 (BrickColor.new returns 1005)
1018Teal 18, 238, 212#12EED4
9
1019Toothpaste 0, 255, 255#00FFFF
18
1020Lime green 0, 255, 0#00FF00
27
1021Camo 58, 125, 21#3A7D15
15
1022Grime 127, 142, 100#7F8E64
26
1023Lavender 140, 91, 159#8C5B9F
31
1024Pastel light blue 175, 221, 255#AFDDFF
38
1025Pastel orange 255, 201, 201#FFC9C9
89
1026Pastel violet 177, 167, 255#B1A7FF
52
1027Pastel blue-green 159, 243, 233#9FF3E9
28
1028Pastel green 204, 255, 204#CCFFCC
61
1029Pastel yellow 255, 255, 204#FFFFCC
74
1030Pastel brown 255, 204, 153#FFCC99
99
1031Royal purple 98, 37, 209#6225D1
32
1032Hot pink 255, 0, 191#FF00BF
54

Constructors

BrickColor.new(value: number)

Returns the BrickColor for which the Number matches value.

Details

If no BrickColors are matched, then the default Medium stone grey is returned.

BrickColor.new(name: string)

Returns the BrickColor for which the Name matches name.

Details

If no BrickColors are matched, then the default Medium stone grey is returned.

Some colors share the same name. For such cases, the BrickColor table indicates which color is returned for the given name.

BrickColor.new(r: number?, g: number?, b: number?)

Returns the BrickColor nearest to the given color components.

Details

Each parameter defaults to 0.

"Nearest" is loosely defined. If a given color is nearby multiple BrickColors within a margin of error, one result should not be expected over another.

BrickColor.new(color: Color3)

Returns the BrickColor nearest to the given color.

Details

"Nearest" is loosely defined. If a given color is nearby multiple BrickColors within a margin of error, one result should not be expected over another.

BrickColor.palette(index: number)

Returns a BrickColor from a predefined list of colors.

Details

The "Palette Index" column in the BrickColor table indicates the index of the color in the palette, or that the color is not in the palette, if empty.

The palette contains 128 colors. index must be between 0 and 127. If index is out of this range, then the following error is thrown:

palette index out of bounds (INDEX)

Where INDEX is the given value rounded to the nearest integer.

BrickColor.random()

Returns a randomly selected BrickColor.

BrickColor.White()

Returns the BrickColor White.

BrickColor.Gray()

Returns the BrickColor Medium stone grey.

BrickColor.DarkGray()

Returns the BrickColor Dark stone grey.

BrickColor.Black()

Returns the BrickColor Black.

BrickColor.Red()

Returns the BrickColor Bright red

BrickColor.Yellow()

Returns the BrickColor Bright yellow.

BrickColor.Green()

Returns the BrickColor Dark green.

BrickColor.Blue()

Returns the BrickColor Bright blue.

Fields

Number: number

A number that uniquely identifies the BrickColor.

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.

Name: string

The name that describes the BrickColor.

Color: Color3

The Color3 value corresponding to the BrickColor.

Operators

BrickColor == BrickColor

Determines whether BrickColor values are equal.

Details

A BrickColor is equal to another BrickColor if their Number fields are equal.

Relevant members (26)