#BAB327#BAB327
#BAB327 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.9% C 0.150 H 106.5°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB327 |
|---|---|
| RGB | rgb(186, 179, 39) |
| HSL | hsl(57, 65%, 44%) |
| HSV | hsv(57, 79%, 73%) |
| CMYK | cmyk(0%, 3.8%, 79%, 27.1%) |
| CIE-LAB | lab(71.44, -12.67, 66.12) |
| CIE-LCH | lch(71.44, 67.32, 100.85°) |
| OKLab | oklab(74.94% -0.0424 0.1435) |
| OKLCH | oklch(74.94% 0.15 106.5) |
| XYZ | xyz(36.7376, 42.8272, 8.2504) |
| Luminance | 0.4283 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.47
Puke Yellow
#C2BE0E
ΔE00 3.45
Muddy Yellow
#BFAC05
ΔE00 3.77
Vomit Yellow
#C7C10C
ΔE00 4.28
Puke
#A5A502
ΔE00 4.77
Mustard Green
#A8B504
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB327 #272EBA
analogous
#BA6A27 #BAB327 #78BA27
triadic
#BAB327 #27BAB3 #B327BA
tetradic
#BAB327 #27BA6A #272EBA #BA2778
square
#BAB327 #27BA6A #272EBA #BA2778
split-complementary
#BAB327 #2778BA #6A27BA
monochromatic
#555212 #87821C #BAB327 #D8D146 #E3DE79
Accessibility & contrast
On white
2.20
#BAB327 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.57
#BAB327 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB327
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB327 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB327 | 1.00 | 2.20 | 9.57 | 9.57 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.57 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.57 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C6B133
Tritanopia (blue-blind)
#C8A799
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab327; /* rgb */ color: rgb(186, 179, 39); /* oklch */ color: oklch(74.9% 0.150 106.5);
Tailwind
colors: {
custom: {
50: '#d3c96e',
500: '#bab327',
950: '#000000',
},
}SCSS
$custom: #bab327; $custom-light: #d3c96e; $custom-dark: #000000;
JSON
{
"hex": "#bab327",
"rgb": {
"r": 186,
"g": 179,
"b": 39
},
"hsl": {
"h": 57.143,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.74944,
"c": 0.14966,
"h": 106.5
},
"luminance": 0.42826
}Semantic roles & 50–950 ramp
primary
#BAB327
secondary
#7276CB
accent
#48E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B