#BAB332#BAB332
#BAB332 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.144 H 106.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB332 |
|---|---|
| RGB | rgb(186, 179, 50) |
| HSL | hsl(57, 58%, 46%) |
| HSV | hsv(57, 73%, 73%) |
| CMYK | cmyk(0%, 3.8%, 73.1%, 27.1%) |
| CIE-LAB | lab(71.49, -12.22, 62.61) |
| CIE-LCH | lch(71.49, 63.79, 101.05°) |
| OKLab | oklab(75.01% -0.0402 0.1381) |
| OKLCH | oklch(75.01% 0.144 106.2) |
| XYZ | xyz(36.9470, 42.9109, 9.3534) |
| Luminance | 0.4291 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.20
Puke Yellow
#C2BE0E
ΔE00 4.00
Muddy Yellow
#BFAC05
ΔE00 4.21
Vomit Yellow
#C7C10C
ΔE00 4.80
Puke
#A5A502
ΔE00 4.96
Mustard Green
#A8B504
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB332 #3239BA
analogous
#BA6F32 #BAB332 #7DBA32
triadic
#BAB332 #32BAB3 #B332BA
tetradic
#BAB332 #32BA6F #3239BA #BA327D
square
#BAB332 #32BA6F #3239BA #BA327D
split-complementary
#BAB332 #327DBA #6F32BA
monochromatic
#5A5618 #8A8525 #BAB332 #D2CC57 #DFDA88
Accessibility & contrast
On white
2.19
#BAB332 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.58
#BAB332 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB332
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB332 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB332 | 1.00 | 2.19 | 9.58 | 9.58 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC19
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab332; /* rgb */ color: rgb(186, 179, 50); /* oklch */ color: oklch(75.0% 0.144 106.2);
Tailwind
colors: {
custom: {
50: '#d2c973',
500: '#bab332',
950: '#000000',
},
}SCSS
$custom: #bab332; $custom-light: #d2c973; $custom-dark: #000000;
JSON
{
"hex": "#bab332",
"rgb": {
"r": 186,
"g": 179,
"b": 50
},
"hsl": {
"h": 56.912,
"s": 57.627,
"l": 46.275
},
"oklch": {
"l": 0.75007,
"c": 0.14382,
"h": 106.2
},
"luminance": 0.4291
}Semantic roles & 50–950 ramp
primary
#BAB332
secondary
#7F83C9
accent
#4FE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B