BrickColor

Constructors

NameDescription
new(val: number)Constructs a BrickColor from its numerical index (Number in color reference table). If the provided number does not correspond to a valid BrickColor, the constructor returns the default "Medium stone grey".
new(r: number,g: number,b: number)Constructs the closest BrickColor that can be matched to the specified RGB components, each between 0 and 1. The match is determined by finding the BrickColor whose color has the smallest total distance (sum of absolute differences per channel) from the given values across all known brick colors.
new(name: string)Constructs a BrickColor from its name, for example "Pastel Blue". The name must match one of the entries in the color table exactly. If the name does not match a known BrickColor, the constructor returns the default "Medium stone grey".
new(color: Color3)Constructs the closest BrickColor that can be matched to the specified Color3. The match uses the same closest-color algorithm as BrickColor.new(r, g, b), comparing the Color3 against every known brick color and returning the one with the smallest total channel distance.
palette(paletteValue: number)Constructs a BrickColor from its zero-based 128-color palette index (Palette Index in color reference table). This is the same palette shown in the Studio color picker. An error is thrown if the index is out of bounds.
random()Returns a random BrickColor selected from the 128-color palette. Each call may return a different color.
White()Returns the "White" BrickColor.
Gray()Returns the "Medium stone grey" BrickColor. This is the same color used as the default when a BrickColor cannot be resolved.
DarkGray()Returns the "Dark stone grey" BrickColor.
Black()Returns the "Black" BrickColor.
Red()Returns the "Red" BrickColor.
Yellow()Returns the "Yellow" BrickColor.
Green()Returns the "Green" BrickColor.
Blue()Returns the "Blue" BrickColor.

Code Snippet

local Part = Instance.new("Part")

Part.BrickColor = BrickColor.new(5) -- by its Number
Part.BrickColor = BrickColor.new(0.844, 0.773, 0.604) -- by closest-matching RGB (0-1 range)
Part.BrickColor = BrickColor.new(Color3.fromRGB(215, 197, 154)) -- by closest-matching Color3
Part.BrickColor = BrickColor.new("Brick yellow") -- by its exact Name
Part.BrickColor = BrickColor.palette(109) -- by its 128-color palette index
Part.BrickColor = BrickColor.random() -- a random BrickColor

Properties

NameTypeDescription
rnumberred component of a rgb(0,0,0) sequence between 0 and 1
gnumbergreen component of a rgb(0,0,0) sequence between 0 and 1
bnumberblue component of a rgb(0,0,0) sequence between 0 and 1
Namestringthe name of the brickcolors color
ColorColor3the Color3 Component of a BrickColor
NumbernumberThe unique number that identifies the BrickColor. This is the same integer used by BrickColor.new() to construct the color and corresponds to the Number column in the color table above. Read-only

Color Index

Color NameNumberPalette IndexRGB Value (0‑255)RGB Value (0‑1)
White187242, 243, 2430.950, 0.953, 0.953
Grey216161, 165, 1620.632, 0.648, 0.636
Light yellow324249, 233, 1530.977, 0.914, 0.600
Brick yellow5109215, 197, 1540.844, 0.773, 0.604
Light green (Mint)619194, 218, 1840.761, 0.855, 0.722
Light reddish violet988232, 186, 2000.910, 0.730, 0.785
Pastel Blue1151128, 187, 2190.502, 0.734, 0.859
Light orange brown1220203, 132, 660.797, 0.518, 0.259
Nougat18110204, 142, 1050.800, 0.557, 0.412
Bright red2168196, 40, 280.769, 0.157, 0.110
Med. reddish violet22196196, 112, 1600.769, 0.440, 0.628
Bright blue232113, 105, 1720.051, 0.412, 0.675
Bright yellow2471245, 205, 480.961, 0.804, 0.189
Earth orange259898, 71, 500.385, 0.279, 0.197
Black263227, 42, 530.106, 0.165, 0.208
Dark grey2710109, 110, 1080.428, 0.432, 0.424
Dark green28840, 127, 710.157, 0.499, 0.279
Medium green2959161, 196, 1400.632, 0.769, 0.550
Lig. Yellowich orange36243243, 207, 1550.953, 0.812, 0.608
Bright green372575, 151, 750.295, 0.593, 0.295
Dark orange38119160, 95, 530.628, 0.373, 0.208
Light bluish violet39193193, 202, 2220.757, 0.793, 0.871
Transparent40236236, 236, 2360.926, 0.926, 0.926
Tr. Red41205205, 84, 750.804, 0.330, 0.295
Tr. Lg blue42193193, 223, 2400.757, 0.875, 0.942
Tr. Blue43123123, 182, 2320.483, 0.714, 0.910
Tr. Yellow44247247, 241, 1410.969, 0.946, 0.553
Light blue4563180, 210, 2280.706, 0.824, 0.895
Tr. Flu. Reddish orange47217217, 133, 1080.851, 0.522, 0.424
Tr. Green48132132, 182, 1410.518, 0.714, 0.553
Tr. Flu. Green49248248, 241, 1320.973, 0.946, 0.518
Phosph. White50236236, 232, 2220.926, 0.910, 0.871
Light red100238238, 196, 1820.934, 0.769, 0.714
Medium red101101218, 134, 1220.855, 0.526, 0.479
Medium blue102201110, 153, 2020.432, 0.600, 0.793
Light grey103199199, 193, 1830.781, 0.757, 0.718
Bright violet10444107, 50, 1240.420, 0.197, 0.487
Br. yellowish orange10594226, 155, 640.887, 0.608, 0.251
Bright orange10683218, 133, 650.855, 0.522, 0.255
Bright bluish green107200, 143, 1560.000, 0.561, 0.612
Earth yellow108104104, 92, 670.408, 0.361, 0.263
Bright bluish violet1106767, 84, 1470.263, 0.330, 0.577
Tr. Brown111191191, 183, 1770.750, 0.718, 0.695
Medium bluish violet112104104, 116, 1720.408, 0.455, 0.675
Tr. Medi. reddish violet113229229, 173, 2000.899, 0.679, 0.785
Med. yellowish green115199199, 210, 600.781, 0.824, 0.236
Med. bluish green1168585, 165, 1750.334, 0.648, 0.687
Light bluish green118183183, 215, 2130.718, 0.844, 0.836
Br. yellowish green11946164, 189, 710.644, 0.742, 0.279
Lig. yellowish green120217217, 228, 1670.851, 0.895, 0.655
Med. yellowish orange121231231, 172, 880.906, 0.675, 0.346
Br. reddish orange123211211, 111, 760.828, 0.436, 0.299
Bright reddish violet124146146, 57, 1200.573, 0.224, 0.471
Light orange125100234, 184, 1460.918, 0.722, 0.573
Tr. Bright bluish violet126165165, 165, 2030.648, 0.648, 0.797
Gold127220220, 188, 1290.863, 0.738, 0.506
Dark nougat128174174, 122, 890.683, 0.479, 0.350
Silver131156156, 163, 1680.612, 0.640, 0.659
Neon orange13382213, 115, 610.836, 0.451, 0.240
Neon green134216216, 221, 860.848, 0.867, 0.338
Sand blue13519116, 134, 1570.455, 0.526, 0.616
Sand violet136135135, 124, 1440.530, 0.487, 0.565
Medium orange137224224, 152, 1000.879, 0.597, 0.393
Sand yellow138149149, 138, 1150.585, 0.542, 0.451
Earth blue1403232, 58, 860.126, 0.228, 0.338
Earth green141039, 70, 450.153, 0.275, 0.177
Tr. Flu. Blue143207207, 226, 2470.812, 0.887, 0.969
Sand blue metallic145121121, 136, 1610.475, 0.534, 0.632
Sand violet metallic146149149, 142, 1630.585, 0.557, 0.640
Sand yellow metallic147147147, 135, 1030.577, 0.530, 0.404
Dark grey metallic1488787, 88, 870.342, 0.346, 0.342
Black metallic1492222, 29, 500.087, 0.114, 0.197
Light grey metallic150171171, 173, 1720.671, 0.679, 0.675
Sand green15134120, 144, 1300.471, 0.565, 0.510
Sand red153114149, 121, 1190.585, 0.475, 0.467
Dark red154123123, 46, 470.483, 0.181, 0.185
Tr. Flu. Yellow157255255, 246, 1231.000, 0.965, 0.483
Tr. Flu. Red158225225, 164, 1940.883, 0.644, 0.761
Gun metallic168117117, 108, 980.459, 0.424, 0.385
Red flip/flop176151151, 105, 910.593, 0.412, 0.357
Yellow flip/flop178180180, 132, 850.706, 0.518, 0.334
Silver flip/flop179137137, 135, 1360.538, 0.530, 0.534
Curry180215215, 169, 750.844, 0.663, 0.295
Fire Yellow190249249, 214, 460.977, 0.840, 0.181
Flame yellowish orange191232232, 171, 450.910, 0.671, 0.177
Reddish brown192103105, 64, 400.412, 0.251, 0.157
Flame reddish orange193207207, 96, 360.812, 0.377, 0.142
Medium stone grey194123163, 162, 1650.640, 0.636, 0.648
Royal blue1957070, 103, 1640.275, 0.404, 0.644
Dark Royal blue1963535, 71, 1390.138, 0.279, 0.546
Bright reddish lilac198142142, 66, 1330.557, 0.259, 0.522
Dark stone grey19912299, 95, 980.389, 0.373, 0.385
Lemon metalic200130130, 138, 930.510, 0.542, 0.365
Light stone grey20862229, 228, 2230.899, 0.895, 0.875
Dark Curry209176176, 142, 680.691, 0.557, 0.267
Faded green210112112, 149, 1200.440, 0.585, 0.471
Turquoise211121121, 181, 1810.475, 0.710, 0.710
Light Royal blue212159159, 195, 2330.624, 0.765, 0.914
Medium Royal blue213108108, 129, 1830.424, 0.506, 0.718
Rust216144144, 76, 420.565, 0.299, 0.165
Brown217111124, 92, 700.487, 0.361, 0.275
Reddish lilac218150150, 112, 1590.589, 0.440, 0.624
Lilac219107107, 98, 1550.420, 0.385, 0.608
Light lilac220167167, 169, 2060.655, 0.663, 0.808
Bright purple221205205, 98, 1520.804, 0.385, 0.597
Light purple222228228, 173, 2000.895, 0.679, 0.785
Light pink223220220, 144, 1490.863, 0.565, 0.585
Light brick yellow224240240, 213, 1600.942, 0.836, 0.628
Warm yellowish orange225235235, 184, 1270.922, 0.722, 0.499
Cool yellow22673253, 234, 1410.993, 0.918, 0.553
Dove blue232125125, 187, 2210.491, 0.734, 0.867
Medium lilac2685252, 43, 1170.204, 0.169, 0.459
Slime green30118080, 109, 840.314, 0.428, 0.330
Smoky grey30210991, 93, 1050.357, 0.365, 0.412
Dark blue303500, 16, 1760.000, 0.063, 0.691
Parsley green3047444, 101, 290.173, 0.397, 0.114
Steel blue30511882, 124, 1740.322, 0.487, 0.683
Storm blue30612551, 88, 1300.200, 0.346, 0.510
Lapis3071316, 42, 2200.063, 0.165, 0.863
Dark indigo30814661, 21, 1330.240, 0.083, 0.522
Sea green30916552, 142, 640.204, 0.557, 0.251
Shamrock31017991, 154, 760.357, 0.604, 0.299
Fossil31129159, 161, 1720.624, 0.632, 0.675
Mulberry31223889, 34, 890.350, 0.134, 0.350
Forest green31324331, 128, 290.122, 0.502, 0.114
Cadet blue31439159, 173, 1920.624, 0.679, 0.753
Electric blue315309, 137, 2070.036, 0.538, 0.812
Eggplant31633123, 0, 1230.483, 0.000, 0.483
Moss31735124, 156, 1070.487, 0.612, 0.420
Artichoke31836138, 171, 1330.542, 0.671, 0.522
Sage green31937185, 196, 1770.726, 0.769, 0.695
Ghost grey32050202, 203, 2090.793, 0.797, 0.820
Lilac32142167, 94, 1550.655, 0.369, 0.608
Plum32243123, 47, 1230.483, 0.185, 0.483
Olivine32347148, 190, 1290.581, 0.746, 0.506
Laurel green32448168, 189, 1530.659, 0.742, 0.600
Quill grey32549223, 223, 2220.875, 0.875, 0.871
Crimson32756151, 0, 00.593, 0.000, 0.000
Mint32860177, 229, 1660.695, 0.899, 0.651
Baby blue32964152, 194, 2190.597, 0.761, 0.859
Carnation pink33065255, 152, 2201.000, 0.597, 0.863
Persimmon33166255, 89, 891.000, 0.350, 0.350
Maroon33269117, 0, 00.459, 0.000, 0.000
Gold33370239, 184, 560.938, 0.722, 0.220
Daisy orange33472248, 217, 1090.973, 0.851, 0.428
Pearl33575231, 231, 2360.906, 0.906, 0.926
Fog33676199, 212, 2280.781, 0.832, 0.895
Salmon33790255, 148, 1481.000, 0.581, 0.581
Terra Cotta33879190, 104, 980.746, 0.408, 0.385
Cocoa3398186, 36, 360.338, 0.142, 0.142
Wheat34084241, 231, 1990.946, 0.906, 0.781
Buttermilk34185254, 243, 1870.997, 0.953, 0.734
Mauve34277224, 178, 2080.879, 0.699, 0.816
Sunrise34378212, 144, 1890.832, 0.565, 0.742
Tawny34491150, 85, 850.589, 0.334, 0.334
Rust34592143, 76, 420.561, 0.299, 0.165
Cashmere34695211, 190, 1500.828, 0.746, 0.589
Khaki34796226, 220, 1880.887, 0.863, 0.738
Lily white34897237, 234, 2340.930, 0.918, 0.918
Seashell34998233, 218, 2180.914, 0.855, 0.855
Burgundy350102136, 62, 620.534, 0.244, 0.244
Cork351104188, 155, 930.738, 0.608, 0.365
Burlap352105199, 172, 1200.781, 0.675, 0.471
Beige353106202, 191, 1630.793, 0.750, 0.640
Oyster354107187, 179, 1780.734, 0.702, 0.699
Pine Cone355112108, 88, 750.424, 0.346, 0.295
Fawn brown356113160, 132, 790.628, 0.518, 0.310
Hurricane grey357115149, 137, 1360.585, 0.538, 0.534
Cloudy grey358116171, 168, 1580.671, 0.659, 0.620
Linen359117175, 148, 1310.687, 0.581, 0.514
Copper360118150, 103, 1020.589, 0.404, 0.400
Medium brown36112086, 66, 540.338, 0.259, 0.212
Bronze362121126, 104, 630.495, 0.408, 0.248
Flint363124105, 102, 920.412, 0.400, 0.361
Dark taupe36412590, 76, 660.353, 0.299, 0.259
Burnt Sienna365126106, 57, 90.416, 0.224, 0.036
Institutional white100186248, 248, 2480.973, 0.973, 0.973
Mid gray1002108205, 205, 2050.804, 0.804, 0.804
Really black100312717, 17, 170.067, 0.067, 0.067
Really red100467255, 0, 01.000, 0.000, 0.000
Deep orange100557255, 176, 01.000, 0.691, 0.000
Alder100641180, 128, 2550.706, 0.502, 1.000
Dusty Rose100780163, 75, 750.640, 0.295, 0.295
Olive100845193, 190, 660.757, 0.746, 0.259
New Yeller100958255, 255, 01.000, 1.000, 0.000
Really blue101020, 0, 2550.000, 0.000, 1.000
Navy blue101160, 32, 960.000, 0.126, 0.377
Deep blue10124333, 84, 1850.130, 0.330, 0.726
Cyan1013404, 175, 2360.016, 0.687, 0.926
CGA brown101493170, 85, 00.667, 0.334, 0.000
Magenta101555170, 0, 1700.667, 0.000, 0.667
Pink101653255, 102, 2041.000, 0.400, 0.800
Deep orange1017255175, 0, 1.0000.687, 0.000
Teal1018918, 238, 2120.071, 0.934, 0.832
Toothpaste1019180255, 255, 0.0001.000, 1.000
Lime green1020270, 255, 00.000, 1.000, 0.000
Camo102115558, 125, 210.228, 0.491, 0.083
Grime102226127, 142, 1000.499, 0.557, 0.393
Lavender102331140, 91, 1590.550, 0.357, 0.624
Pastel light blue102438175, 221, 2550.687, 0.867, 1.000
Pastel orange102589255, 201, 2011.000, 0.789, 0.789
Pastel violet102652177, 167, 2550.695, 0.655, 1.000
Pastel blue-green102728159, 243, 2330.624, 0.953, 0.914
Pastel green102861204, 255, 2040.800, 1.000, 0.800
Pastel yellow102974255, 255, 2041.000, 1.000, 0.800
Pastel brown103099255, 204, 1531.000, 0.800, 0.600
Royal purple10313298, 37, 2090.385, 0.146, 0.820
Hot pink103254255, 0, 1911.000, 0.000, 0.750