#BAB941#BAB941
#BAB941 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.4% C 0.140 H 108.8°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB941 |
|---|---|
| RGB | rgb(186, 185, 65) |
| HSL | hsl(60, 48%, 49%) |
| HSV | hsv(60, 65%, 73%) |
| CMYK | cmyk(0%, 0.5%, 65.1%, 27.1%) |
| CIE-LAB | lab(73.23, -14.50, 58.62) |
| CIE-LCH | lch(73.23, 60.38, 103.89°) |
| OKLab | oklab(76.43% -0.0451 0.1322) |
| OKLCH | oklch(76.43% 0.14 108.8) |
| XYZ | xyz(38.5541, 45.5198, 11.7553) |
| Luminance | 0.4552 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 4.36
Snot
#ACBB0D
ΔE00 4.64
Mustard Green
#A8B504
ΔE00 4.69
Olive Yellow
#C2B709
ΔE00 4.76
Vomit Yellow
#C7C10C
ΔE00 5.09
Bile
#B5C306
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB941 #4142BA
analogous
#BA7D41 #BAB941 #7FBA41
triadic
#BAB941 #41BAB9 #B941BA
tetradic
#BAB941 #41BA7D #4142BA #BA417F
square
#BAB941 #41BA7D #4142BA #BA417F
split-complementary
#BAB941 #417FBA #7D41BA
monochromatic
#5F5F21 #8D8C31 #BAB941 #CCCB6C #DCDB9A
Accessibility & contrast
On white
2.08
#BAB941 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.10
#BAB941 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB941
10.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB941 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB941 | 1.00 | 2.08 | 10.10 | 10.10 |
| #FFFFFF | 2.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B231
Deuteranopia (green-blind)
#C9B649
Tritanopia (blue-blind)
#C7AEA0
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #bab941; /* rgb */ color: rgb(186, 185, 65); /* oklch */ color: oklch(76.4% 0.140 108.8);
Tailwind
colors: {
custom: {
50: '#d2cd7c',
500: '#bab941',
950: '#000000',
},
}SCSS
$custom: #bab941; $custom-light: #d2cd7c; $custom-dark: #000000;
JSON
{
"hex": "#bab941",
"rgb": {
"r": 186,
"g": 185,
"b": 65
},
"hsl": {
"h": 59.504,
"s": 48.207,
"l": 49.216
},
"oklch": {
"l": 0.76425,
"c": 0.13971,
"h": 108.8
},
"luminance": 0.45519
}Semantic roles & 50–950 ramp
primary
#BAB941
secondary
#8F90C8
accent
#51D850
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14130A
muted
#83827C