#B2AB31#B2AB31
#B2AB31 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.138 H 106.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB31 |
|---|---|
| RGB | rgb(178, 171, 49) |
| HSL | hsl(57, 57%, 45%) |
| HSV | hsv(57, 72%, 70%) |
| CMYK | cmyk(0%, 3.9%, 72.5%, 30.2%) |
| CIE-LAB | lab(68.62, -11.61, 59.97) |
| CIE-LCH | lch(68.62, 61.08, 100.96°) |
| OKLab | oklab(72.55% -0.0382 0.1326) |
| OKLCH | oklch(72.55% 0.138 106.1) |
| XYZ | xyz(33.4787, 38.8138, 8.6334) |
| Luminance | 0.3881 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.45
Vomit
#A2A415
ΔE00 3.64
Muddy Yellow
#BFAC05
ΔE00 4.46
Olive Yellow
#C2B709
ΔE00 4.97
Mustard Green
#A8B504
ΔE00 5.55
Puke Yellow
#C2BE0E
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB31 #3138B2
analogous
#B26B31 #B2AB31 #79B231
triadic
#B2AB31 #31B2AB #AB31B2
tetradic
#B2AB31 #31B26B #3138B2 #B23179
square
#B2AB31 #31B26B #3138B2 #B23179
split-complementary
#B2AB31 #3179B2 #6B31B2
monochromatic
#524F17 #827D24 #B2AB31 #CFC851 #DCD781
Accessibility & contrast
On white
2.40
#B2AB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.76
#B2AB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB31
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB31 | 1.00 | 2.40 | 8.76 | 8.76 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BDAA3A
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b2ab31; /* rgb */ color: rgb(178, 171, 49); /* oklch */ color: oklch(72.5% 0.138 106.1);
Tailwind
colors: {
custom: {
50: '#cdc372',
500: '#b2ab31',
950: '#000000',
},
}SCSS
$custom: #b2ab31; $custom-light: #cdc372; $custom-dark: #000000;
JSON
{
"hex": "#b2ab31",
"rgb": {
"r": 178,
"g": 171,
"b": 49
},
"hsl": {
"h": 56.744,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.72547,
"c": 0.13799,
"h": 106.1
},
"luminance": 0.38813
}Semantic roles & 50–950 ramp
primary
#B2AB31
secondary
#797DC5
accent
#50E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B