#BAB539#BAB539
#BAB539 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.5% C 0.141 H 107.1°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB539 |
|---|---|
| RGB | rgb(186, 181, 57) |
| HSL | hsl(58, 53%, 48%) |
| HSV | hsv(58, 69%, 73%) |
| CMYK | cmyk(0%, 2.7%, 69.4%, 27.1%) |
| CIE-LAB | lab(72.08, -12.91, 60.61) |
| CIE-LCH | lch(72.08, 61.97, 102.02°) |
| OKLab | oklab(75.49% -0.0414 0.1351) |
| OKLCH | oklch(75.49% 0.141 107.1) |
| XYZ | xyz(37.5135, 43.7835, 10.3451) |
| Luminance | 0.4378 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.77
Puke Yellow
#C2BE0E
ΔE00 4.10
Mustard Green
#A8B504
ΔE00 4.85
Vomit Yellow
#C7C10C
ΔE00 4.89
Muddy Yellow
#BFAC05
ΔE00 5.09
Snot
#ACBB0D
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB539 #393EBA
analogous
#BA7439 #BAB539 #7FBA39
triadic
#BAB539 #39BAB5 #B539BA
tetradic
#BAB539 #39BA74 #393EBA #BA397F
square
#BAB539 #39BA74 #393EBA #BA397F
split-complementary
#BAB539 #397FBA #7439BA
monochromatic
#5C5A1C #8B872B #BAB539 #CFCA61 #DDDA90
Accessibility & contrast
On white
2.15
#BAB539 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.76
#BAB539 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB539
9.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB539 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB539 | 1.00 | 2.15 | 9.76 | 9.76 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AE25
Deuteranopia (green-blind)
#C7B342
Tritanopia (blue-blind)
#C7A99C
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab539; /* rgb */ color: rgb(186, 181, 57); /* oklch */ color: oklch(75.5% 0.141 107.1);
Tailwind
colors: {
custom: {
50: '#d2ca77',
500: '#bab539',
950: '#000000',
},
}SCSS
$custom: #bab539; $custom-light: #d2ca77; $custom-dark: #000000;
JSON
{
"hex": "#bab539",
"rgb": {
"r": 186,
"g": 181,
"b": 57
},
"hsl": {
"h": 57.674,
"s": 53.086,
"l": 47.647
},
"oklch": {
"l": 0.75491,
"c": 0.14131,
"h": 107.1
},
"luminance": 0.43782
}Semantic roles & 50–950 ramp
primary
#BAB539
secondary
#8789C8
accent
#51DC4B
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B