#BAB042#BAB042
#BAB042 is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.5% C 0.130 H 104.1°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB042 |
|---|---|
| RGB | rgb(186, 176, 66) |
| HSL | hsl(55, 48%, 49%) |
| HSV | hsv(55, 65%, 73%) |
| CMYK | cmyk(0%, 5.4%, 64.5%, 27.1%) |
| CIE-LAB | lab(70.79, -9.81, 55.65) |
| CIE-LCH | lch(70.79, 56.51, 100.00°) |
| OKLab | oklab(74.48% -0.0317 0.1261) |
| OKLCH | oklch(74.48% 0.13 104.1) |
| XYZ | xyz(36.7598, 41.8845, 11.3014) |
| Luminance | 0.4188 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 4.85
Olive Yellow
#C2B709
ΔE00 4.96
Puke
#A5A502
ΔE00 5.62
Darkkhaki
#BDB76B
ΔE00 5.65
Vomit
#A2A415
ΔE00 5.75
Puke Yellow
#C2BE0E
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB042 #424CBA
analogous
#BA7442 #BAB042 #88BA42
triadic
#BAB042 #42BAB0 #B042BA
tetradic
#BAB042 #42BA74 #424CBA #BA4288
square
#BAB042 #42BA74 #424CBA #BA4288
split-complementary
#BAB042 #4288BA #7442BA
monochromatic
#605B22 #8D8532 #BAB042 #CBC46E #DBD69B
Accessibility & contrast
On white
2.24
#BAB042 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.38
#BAB042 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB042
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB042 | 1.00 | 2.24 | 9.38 | 9.38 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFAA34
Deuteranopia (green-blind)
#C2B048
Tritanopia (blue-blind)
#C7A499
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #bab042; /* rgb */ color: rgb(186, 176, 66); /* oklch */ color: oklch(74.5% 0.130 104.1);
Tailwind
colors: {
custom: {
50: '#d2c77c',
500: '#bab042',
950: '#000000',
},
}SCSS
$custom: #bab042; $custom-light: #d2c77c; $custom-dark: #000000;
JSON
{
"hex": "#bab042",
"rgb": {
"r": 186,
"g": 176,
"b": 66
},
"hsl": {
"h": 55,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.74483,
"c": 0.13004,
"h": 104.1
},
"luminance": 0.41883
}Semantic roles & 50–950 ramp
primary
#BAB042
secondary
#9095C8
accent
#5CD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C