#BAB532#BAB532
#BAB532 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.146 H 107.2°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB532 |
|---|---|
| RGB | rgb(186, 181, 50) |
| HSL | hsl(58, 58%, 46%) |
| HSV | hsv(58, 73%, 73%) |
| CMYK | cmyk(0%, 2.7%, 73.1%, 27.1%) |
| CIE-LAB | lab(72.04, -13.25, 63.12) |
| CIE-LCH | lch(72.04, 64.50, 101.85°) |
| OKLab | oklab(75.44% -0.0431 0.1392) |
| OKLCH | oklch(75.44% 0.146 107.2) |
| XYZ | xyz(37.3508, 43.7184, 9.4880) |
| Luminance | 0.4372 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.20
Puke Yellow
#C2BE0E
ΔE00 3.58
Vomit Yellow
#C7C10C
ΔE00 4.41
Mustard Green
#A8B504
ΔE00 4.56
Muddy Yellow
#BFAC05
ΔE00 4.73
Snot
#ACBB0D
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB532 #3237BA
analogous
#BA7132 #BAB532 #7BBA32
triadic
#BAB532 #32BAB5 #B532BA
tetradic
#BAB532 #32BA71 #3237BA #BA327B
square
#BAB532 #32BA71 #3237BA #BA327B
split-complementary
#BAB532 #327BBA #7132BA
monochromatic
#5A5718 #8A8625 #BAB532 #D2CD57 #DFDC88
Accessibility & contrast
On white
2.16
#BAB532 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.74
#BAB532 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB532
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB532 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB532 | 1.00 | 2.16 | 9.74 | 9.74 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AE18
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab532; /* rgb */ color: rgb(186, 181, 50); /* oklch */ color: oklch(75.4% 0.146 107.2);
Tailwind
colors: {
custom: {
50: '#d2ca73',
500: '#bab532',
950: '#000000',
},
}SCSS
$custom: #bab532; $custom-light: #d2ca73; $custom-dark: #000000;
JSON
{
"hex": "#bab532",
"rgb": {
"r": 186,
"g": 181,
"b": 50
},
"hsl": {
"h": 57.794,
"s": 57.627,
"l": 46.275
},
"oklch": {
"l": 0.75442,
"c": 0.1457,
"h": 107.2
},
"luminance": 0.43717
}Semantic roles & 50–950 ramp
primary
#BAB532
secondary
#7F82C9
accent
#4DE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B