#BAB942#BAB942
#BAB942 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.4% C 0.139 H 108.8°. Best body text is #000000 at 10.11:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB942 |
|---|---|
| RGB | rgb(186, 185, 66) |
| HSL | hsl(60, 48%, 49%) |
| HSV | hsv(60, 65%, 73%) |
| CMYK | cmyk(0%, 0.5%, 64.5%, 27.1%) |
| CIE-LAB | lab(73.24, -14.44, 58.22) |
| CIE-LCH | lch(73.24, 59.98, 103.93°) |
| OKLab | oklab(76.43% -0.0448 0.1315) |
| OKLCH | oklch(76.43% 0.139 108.8) |
| XYZ | xyz(38.5833, 45.5315, 11.9092) |
| Luminance | 0.4553 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 4.47
Snot
#ACBB0D
ΔE00 4.71
Mustard Green
#A8B504
ΔE00 4.76
Olive Yellow
#C2B709
ΔE00 4.85
Vomit Yellow
#C7C10C
ΔE00 5.18
Bile
#B5C306
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB942 #4243BA
analogous
#BA7D42 #BAB942 #7FBA42
triadic
#BAB942 #42BAB9 #B942BA
tetradic
#BAB942 #42BA7D #4243BA #BA427F
square
#BAB942 #42BA7D #4243BA #BA427F
split-complementary
#BAB942 #427FBA #7D42BA
monochromatic
#605F22 #8D8C32 #BAB942 #CBCB6E #DBDB9B
Accessibility & contrast
On white
2.08
#BAB942 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.11
#BAB942 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB942
10.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB942 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB942 | 1.00 | 2.08 | 10.11 | 10.11 |
| #FFFFFF | 2.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B232
Deuteranopia (green-blind)
#C9B64A
Tritanopia (blue-blind)
#C7AEA1
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #bab942; /* rgb */ color: rgb(186, 185, 66); /* oklch */ color: oklch(76.4% 0.139 108.8);
Tailwind
colors: {
custom: {
50: '#d2cd7c',
500: '#bab942',
950: '#000000',
},
}SCSS
$custom: #bab942; $custom-light: #d2cd7c; $custom-dark: #000000;
JSON
{
"hex": "#bab942",
"rgb": {
"r": 186,
"g": 185,
"b": 66
},
"hsl": {
"h": 59.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.76434,
"c": 0.13897,
"h": 108.8
},
"luminance": 0.4553
}Semantic roles & 50–950 ramp
primary
#BAB942
secondary
#9091C8
accent
#52D751
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C