#BAB752#BAB752
#BAB752 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.2% C 0.124 H 107.4°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB752 |
|---|---|
| RGB | rgb(186, 183, 82) |
| HSL | hsl(58, 43%, 53%) |
| HSV | hsv(58, 56%, 73%) |
| CMYK | cmyk(0%, 1.6%, 55.9%, 27.1%) |
| CIE-LAB | lab(72.84, -12.30, 50.77) |
| CIE-LCH | lch(72.84, 52.24, 103.62°) |
| OKLab | oklab(76.16% -0.037 0.1179) |
| OKLCH | oklch(76.16% 0.124 107.4) |
| XYZ | xyz(38.7073, 44.9164, 14.6118) |
| Luminance | 0.4491 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.95
Puke Yellow
#C2BE0E
ΔE00 6.49
Olive Yellow
#C2B709
ΔE00 6.49
Mustard Green
#A8B504
ΔE00 6.53
Snot
#ACBB0D
ΔE00 6.63
Light Olive
#ACBF69
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB752 #5255BA
analogous
#BA8352 #BAB752 #89BA52
triadic
#BAB752 #52BAB7 #B752BA
tetradic
#BAB752 #52BA83 #5255BA #BA5289
square
#BAB752 #52BA83 #5255BA #BA5289
split-complementary
#BAB752 #5289BA #8352BA
monochromatic
#68662A #94913B #BAB752 #CBC97E #DDDBAA
Accessibility & contrast
On white
2.10
#BAB752 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.98
#BAB752 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB752
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB752 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB752 | 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)
#C5B148
Deuteranopia (green-blind)
#C7B557
Tritanopia (blue-blind)
#C6ACA1
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab752; /* rgb */ color: rgb(186, 183, 82); /* oklch */ color: oklch(76.2% 0.124 107.4);
Tailwind
colors: {
custom: {
50: '#d1cc86',
500: '#bab752',
950: '#000000',
},
}SCSS
$custom: #bab752; $custom-light: #d1cc86; $custom-dark: #000000;
JSON
{
"hex": "#bab752",
"rgb": {
"r": 186,
"g": 183,
"b": 82
},
"hsl": {
"h": 58.269,
"s": 42.975,
"l": 52.549
},
"oklch": {
"l": 0.76158,
"c": 0.12358,
"h": 107.4
},
"luminance": 0.44915
}Semantic roles & 50–950 ramp
primary
#BAB752
secondary
#9D9FCA
accent
#59D355
background
#FDFCF8
surface
#FAF8F0
border
#D3D1CB
text
#14130B
muted
#83827C