#BAB151#BAB151
#BAB151 is a light, moderate yellow. Relative luminance 0.425; OKLCH L 74.9% C 0.118 H 103.9°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB151 |
|---|---|
| RGB | rgb(186, 177, 81) |
| HSL | hsl(55, 43%, 52%) |
| HSV | hsv(55, 56%, 73%) |
| CMYK | cmyk(0%, 4.8%, 56.5%, 27.1%) |
| CIE-LAB | lab(71.20, -9.28, 49.38) |
| CIE-LCH | lch(71.20, 50.24, 100.64°) |
| OKLab | oklab(74.85% -0.0285 0.1148) |
| OKLCH | oklch(74.85% 0.118 103.9) |
| XYZ | xyz(37.4582, 42.4787, 14.0091) |
| Luminance | 0.4248 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.82
Khaki (survey)
#AAA662
ΔE00 5.81
Muddy Yellow
#BFAC05
ΔE00 6.61
Olive Yellow
#C2B709
ΔE00 6.65
Vomit
#A2A415
ΔE00 6.84
Puke
#A5A502
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB151 #515ABA
analogous
#BA7C51 #BAB151 #8FBA51
triadic
#BAB151 #51BAB1 #B151BA
tetradic
#BAB151 #51BA7C #515ABA #BA518F
square
#BAB151 #51BA7C #515ABA #BA518F
split-complementary
#BAB151 #518FBA #7C51BA
monochromatic
#686229 #938C3A #BAB151 #CBC57D #DDD8A9
Accessibility & contrast
On white
2.21
#BAB151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.50
#BAB151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB151
9.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB151 | 1.00 | 2.21 | 9.50 | 9.50 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFAC47
Deuteranopia (green-blind)
#C2B156
Tritanopia (blue-blind)
#C7A69C
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #bab151; /* rgb */ color: rgb(186, 177, 81); /* oklch */ color: oklch(74.9% 0.118 103.9);
Tailwind
colors: {
custom: {
50: '#d1c885',
500: '#bab151',
950: '#000000',
},
}SCSS
$custom: #bab151; $custom-light: #d1c885; $custom-dark: #000000;
JSON
{
"hex": "#bab151",
"rgb": {
"r": 186,
"g": 177,
"b": 81
},
"hsl": {
"h": 54.857,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.74852,
"c": 0.11828,
"h": 103.9
},
"luminance": 0.42477
}Semantic roles & 50–950 ramp
primary
#BAB151
secondary
#9DA0CA
accent
#60D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C