#B2AE31#B2AE31
#B2AE31 is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.141 H 107.6°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AE31 |
|---|---|
| RGB | rgb(178, 174, 49) |
| HSL | hsl(58, 57%, 45%) |
| HSV | hsv(58, 72%, 70%) |
| CMYK | cmyk(0%, 2.2%, 72.5%, 30.2%) |
| CIE-LAB | lab(69.44, -13.16, 60.76) |
| CIE-LCH | lch(69.44, 62.17, 102.22°) |
| OKLab | oklab(73.2% -0.0425 0.1343) |
| OKLCH | oklch(73.2% 0.141 107.6) |
| XYZ | xyz(34.0518, 39.9600, 8.8245) |
| Luminance | 0.3996 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.57
Vomit
#A2A415
ΔE00 3.74
Mustard Green
#A8B504
ΔE00 4.61
Olive Yellow
#C2B709
ΔE00 4.66
Muddy Yellow
#BFAC05
ΔE00 4.91
Puke Yellow
#C2BE0E
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AE31 #3135B2
analogous
#B26E31 #B2AE31 #75B231
triadic
#B2AE31 #31B2AE #AE31B2
tetradic
#B2AE31 #31B26E #3135B2 #B23175
square
#B2AE31 #31B26E #3135B2 #B23175
split-complementary
#B2AE31 #3175B2 #6E31B2
monochromatic
#525017 #827F24 #B2AE31 #CFCB51 #DCDA81
Accessibility & contrast
On white
2.34
#B2AE31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.99
#B2AE31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AE31
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AE31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AE31 | 1.00 | 2.34 | 8.99 | 8.99 |
| #FFFFFF | 2.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA71A
Deuteranopia (green-blind)
#BFAC3A
Tritanopia (blue-blind)
#BFA296
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #b2ae31; /* rgb */ color: rgb(178, 174, 49); /* oklch */ color: oklch(73.2% 0.141 107.6);
Tailwind
colors: {
custom: {
50: '#cdc572',
500: '#b2ae31',
950: '#000000',
},
}SCSS
$custom: #b2ae31; $custom-light: #cdc572; $custom-dark: #000000;
JSON
{
"hex": "#b2ae31",
"rgb": {
"r": 178,
"g": 174,
"b": 49
},
"hsl": {
"h": 58.14,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.73204,
"c": 0.14085,
"h": 107.6
},
"luminance": 0.39959
}Semantic roles & 50–950 ramp
primary
#B2AE31
secondary
#797CC5
accent
#4CE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B