#BAB54A#BAB54A
#BAB54A is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.128 H 106.6°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB54A |
|---|---|
| RGB | rgb(186, 181, 74) |
| HSL | hsl(57, 45%, 51%) |
| HSV | hsv(57, 60%, 73%) |
| CMYK | cmyk(0%, 2.7%, 60.2%, 27.1%) |
| CIE-LAB | lab(72.22, -11.87, 53.71) |
| CIE-LCH | lch(72.22, 55.00, 102.46°) |
| OKLab | oklab(75.64% -0.0367 0.1232) |
| OKLCH | oklch(75.64% 0.128 106.6) |
| XYZ | xyz(38.0108, 43.9825, 12.9644) |
| Luminance | 0.4398 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.77
Olive Yellow
#C2B709
ΔE00 5.52
Puke Yellow
#C2BE0E
ΔE00 5.78
Mustard Green
#A8B504
ΔE00 6.05
Snot
#ACBB0D
ΔE00 6.31
Muddy Yellow
#BFAC05
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB54A #4A4FBA
analogous
#BA7D4A #BAB54A #87BA4A
triadic
#BAB54A #4ABAB5 #B54ABA
tetradic
#BAB54A #4ABA7D #4A4FBA #BA4A87
square
#BAB54A #4ABA7D #4A4FBA #BA4A87
split-complementary
#BAB54A #4A87BA #7D4ABA
monochromatic
#646126 #908C37 #BAB54A #CBC776 #DCD9A3
Accessibility & contrast
On white
2.14
#BAB54A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.80
#BAB54A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB54A
9.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB54A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB54A | 1.00 | 2.14 | 9.80 | 9.80 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AF3E
Deuteranopia (green-blind)
#C6B350
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab54a; /* rgb */ color: rgb(186, 181, 74); /* oklch */ color: oklch(75.6% 0.128 106.6);
Tailwind
colors: {
custom: {
50: '#d1ca81',
500: '#bab54a',
950: '#000000',
},
}SCSS
$custom: #bab54a; $custom-light: #d1ca81; $custom-dark: #000000;
JSON
{
"hex": "#bab54a",
"rgb": {
"r": 186,
"g": 181,
"b": 74
},
"hsl": {
"h": 57.321,
"s": 44.8,
"l": 50.98
},
"oklch": {
"l": 0.75639,
"c": 0.12849,
"h": 106.6
},
"luminance": 0.43981
}Semantic roles & 50–950 ramp
primary
#BAB54A
secondary
#9799C9
accent
#59D553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C