#BAB427#BAB427
#BAB427 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.2% C 0.151 H 106.9°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB427 |
|---|---|
| RGB | rgb(186, 180, 39) |
| HSL | hsl(58, 65%, 44%) |
| HSV | hsv(58, 79%, 73%) |
| CMYK | cmyk(0%, 3.2%, 79%, 27.1%) |
| CIE-LAB | lab(71.71, -13.18, 66.36) |
| CIE-LCH | lch(71.71, 67.66, 101.23°) |
| OKLab | oklab(75.16% -0.0439 0.144) |
| OKLCH | oklch(75.16% 0.151 106.9) |
| XYZ | xyz(36.9387, 43.2295, 8.3174) |
| Luminance | 0.4323 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.46
Puke Yellow
#C2BE0E
ΔE00 3.20
Muddy Yellow
#BFAC05
ΔE00 4.06
Vomit Yellow
#C7C10C
ΔE00 4.07
Mustard Green
#A8B504
ΔE00 4.55
Puke
#A5A502
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB427 #272DBA
analogous
#BA6B27 #BAB427 #77BA27
triadic
#BAB427 #27BAB4 #B427BA
tetradic
#BAB427 #27BA6B #272DBA #BA2777
square
#BAB427 #27BA6B #272DBA #BA2777
split-complementary
#BAB427 #2777BA #6B27BA
monochromatic
#555212 #87831C #BAB427 #D8D246 #E3DE79
Accessibility & contrast
On white
2.18
#BAB427 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.65
#BAB427 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB427
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB427 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB427 | 1.00 | 2.18 | 9.65 | 9.65 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C7B233
Tritanopia (blue-blind)
#C8A89A
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #bab427; /* rgb */ color: rgb(186, 180, 39); /* oklch */ color: oklch(75.2% 0.151 106.9);
Tailwind
colors: {
custom: {
50: '#d3ca6e',
500: '#bab427',
950: '#000000',
},
}SCSS
$custom: #bab427; $custom-light: #d3ca6e; $custom-dark: #000000;
JSON
{
"hex": "#bab427",
"rgb": {
"r": 186,
"g": 180,
"b": 39
},
"hsl": {
"h": 57.551,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.75161,
"c": 0.15057,
"h": 106.9
},
"luminance": 0.43228
}Semantic roles & 50–950 ramp
primary
#BAB427
secondary
#7276CB
accent
#46E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B