#BAB751#BAB751
#BAB751 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.124 H 107.5°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB751 |
|---|---|
| RGB | rgb(186, 183, 81) |
| HSL | hsl(58, 43%, 52%) |
| HSV | hsv(58, 56%, 73%) |
| CMYK | cmyk(0%, 1.6%, 56.5%, 27.1%) |
| CIE-LAB | lab(72.83, -12.38, 51.22) |
| CIE-LCH | lch(72.83, 52.70, 103.59°) |
| OKLab | oklab(76.15% -0.0373 0.1188) |
| OKLCH | oklch(76.15% 0.124 107.5) |
| XYZ | xyz(38.6695, 44.9013, 14.4128) |
| Luminance | 0.4490 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.08
Puke Yellow
#C2BE0E
ΔE00 6.36
Olive Yellow
#C2B709
ΔE00 6.37
Mustard Green
#A8B504
ΔE00 6.41
Snot
#ACBB0D
ΔE00 6.52
Light Olive
#ACBF69
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB751 #5154BA
analogous
#BA8351 #BAB751 #88BA51
triadic
#BAB751 #51BAB7 #B751BA
tetradic
#BAB751 #51BA83 #5154BA #BA5188
square
#BAB751 #51BA83 #5154BA #BA5188
split-complementary
#BAB751 #5188BA #8351BA
monochromatic
#686629 #93913A #BAB751 #CBC97D #DDDBA9
Accessibility & contrast
On white
2.10
#BAB751 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.98
#BAB751 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB751
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB751 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB751 | 1.00 | 2.10 | 9.98 | 9.98 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5B046
Deuteranopia (green-blind)
#C7B557
Tritanopia (blue-blind)
#C6ACA1
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab751; /* rgb */ color: rgb(186, 183, 81); /* oklch */ color: oklch(76.1% 0.124 107.5);
Tailwind
colors: {
custom: {
50: '#d1cc85',
500: '#bab751',
950: '#000000',
},
}SCSS
$custom: #bab751; $custom-light: #d1cc85; $custom-dark: #000000;
JSON
{
"hex": "#bab751",
"rgb": {
"r": 186,
"g": 183,
"b": 81
},
"hsl": {
"h": 58.286,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.76146,
"c": 0.12449,
"h": 107.5
},
"luminance": 0.449
}Semantic roles & 50–950 ramp
primary
#BAB751
secondary
#9D9ECA
accent
#58D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C