#BAB336#BAB336
#BAB336 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.141 H 106.1°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB336 |
|---|---|
| RGB | rgb(186, 179, 54) |
| HSL | hsl(57, 55%, 47%) |
| HSV | hsv(57, 71%, 73%) |
| CMYK | cmyk(0%, 3.8%, 71%, 27.1%) |
| CIE-LAB | lab(71.52, -12.03, 61.18) |
| CIE-LCH | lch(71.52, 62.35, 101.13°) |
| OKLab | oklab(75.03% -0.0393 0.1358) |
| OKLCH | oklch(75.03% 0.141 106.1) |
| XYZ | xyz(37.0371, 42.9470, 9.8280) |
| Luminance | 0.4295 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.53
Puke Yellow
#C2BE0E
ΔE00 4.27
Muddy Yellow
#BFAC05
ΔE00 4.43
Vomit Yellow
#C7C10C
ΔE00 5.05
Puke
#A5A502
ΔE00 5.08
Mustard Green
#A8B504
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB336 #363DBA
analogous
#BA7136 #BAB336 #7FBA36
triadic
#BAB336 #36BAB3 #B336BA
tetradic
#BAB336 #36BA71 #363DBA #BA367F
square
#BAB336 #36BA71 #363DBA #BA367F
split-complementary
#BAB336 #367FBA #7136BA
monochromatic
#5B581A #8B8528 #BAB336 #D0CA5D #DED98D
Accessibility & contrast
On white
2.19
#BAB336 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.59
#BAB336 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB336
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB336 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB336 | 1.00 | 2.19 | 9.59 | 9.59 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AC21
Deuteranopia (green-blind)
#C5B23F
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab336; /* rgb */ color: rgb(186, 179, 54); /* oklch */ color: oklch(75.0% 0.141 106.1);
Tailwind
colors: {
custom: {
50: '#d2c975',
500: '#bab336',
950: '#000000',
},
}SCSS
$custom: #bab336; $custom-light: #d2c975; $custom-dark: #000000;
JSON
{
"hex": "#bab336",
"rgb": {
"r": 186,
"g": 179,
"b": 54
},
"hsl": {
"h": 56.818,
"s": 55,
"l": 47.059
},
"oklch": {
"l": 0.75034,
"c": 0.14136,
"h": 106.1
},
"luminance": 0.42946
}Semantic roles & 50–950 ramp
primary
#BAB336
secondary
#8487C8
accent
#51DE49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B