#BAB527#BAB527
#BAB527 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.4% C 0.151 H 107.4°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB527 |
|---|---|
| RGB | rgb(186, 181, 39) |
| HSL | hsl(58, 65%, 44%) |
| HSV | hsv(58, 79%, 73%) |
| CMYK | cmyk(0%, 2.7%, 79%, 27.1%) |
| CIE-LAB | lab(71.98, -13.69, 66.61) |
| CIE-LCH | lch(71.98, 68.00, 101.62°) |
| OKLab | oklab(75.38% -0.0453 0.1446) |
| OKLCH | oklch(75.38% 0.151 107.4) |
| XYZ | xyz(37.1413, 43.6347, 8.3850) |
| Luminance | 0.4363 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.50
Puke Yellow
#C2BE0E
ΔE00 2.97
Vomit Yellow
#C7C10C
ΔE00 3.87
Mustard Green
#A8B504
ΔE00 4.33
Muddy Yellow
#BFAC05
ΔE00 4.36
Snot
#ACBB0D
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB527 #272CBA
analogous
#BA6C27 #BAB527 #76BA27
triadic
#BAB527 #27BAB5 #B527BA
tetradic
#BAB527 #27BA6C #272CBA #BA2776
square
#BAB527 #27BA6C #272CBA #BA2776
split-complementary
#BAB527 #2776BA #6C27BA
monochromatic
#555312 #87841C #BAB527 #D8D346 #E3DF79
Accessibility & contrast
On white
2.16
#BAB527 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.73
#BAB527 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB527
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB527 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB527 | 1.00 | 2.16 | 9.73 | 9.73 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C7B333
Tritanopia (blue-blind)
#C8A99B
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #bab527; /* rgb */ color: rgb(186, 181, 39); /* oklch */ color: oklch(75.4% 0.151 107.4);
Tailwind
colors: {
custom: {
50: '#d3ca6e',
500: '#bab527',
950: '#000000',
},
}SCSS
$custom: #bab527; $custom-light: #d3ca6e; $custom-dark: #000000;
JSON
{
"hex": "#bab527",
"rgb": {
"r": 186,
"g": 181,
"b": 39
},
"hsl": {
"h": 57.959,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.75379,
"c": 0.15149,
"h": 107.4
},
"luminance": 0.43633
}Semantic roles & 50–950 ramp
primary
#BAB527
secondary
#7275CB
accent
#45E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B