#BAB333#BAB333
#BAB333 is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.143 H 106.2°. Best body text is #000000 at 9.58:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB333 |
|---|---|
| RGB | rgb(186, 179, 51) |
| HSL | hsl(57, 57%, 46%) |
| HSV | hsv(57, 73%, 73%) |
| CMYK | cmyk(0%, 3.8%, 72.6%, 27.1%) |
| CIE-LAB | lab(71.50, -12.18, 62.26) |
| CIE-LCH | lch(71.50, 63.44, 101.07°) |
| OKLab | oklab(75.01% -0.04 0.1375) |
| OKLCH | oklch(75.01% 0.143 106.2) |
| XYZ | xyz(36.9688, 42.9197, 9.4683) |
| Luminance | 0.4292 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.28
Puke Yellow
#C2BE0E
ΔE00 4.07
Muddy Yellow
#BFAC05
ΔE00 4.26
Vomit Yellow
#C7C10C
ΔE00 4.86
Puke
#A5A502
ΔE00 4.99
Mustard Green
#A8B504
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB333 #333ABA
analogous
#BA7033 #BAB333 #7EBA33
triadic
#BAB333 #33BAB3 #B333BA
tetradic
#BAB333 #33BA70 #333ABA #BA337E
square
#BAB333 #33BA70 #333ABA #BA337E
split-complementary
#BAB333 #337EBA #7033BA
monochromatic
#5A5719 #8A8526 #BAB333 #D1CB59 #DFDA89
Accessibility & contrast
On white
2.19
#BAB333 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.58
#BAB333 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB333
9.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB333 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB333 | 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)
#C2AC1B
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab333; /* rgb */ color: rgb(186, 179, 51); /* oklch */ color: oklch(75.0% 0.143 106.2);
Tailwind
colors: {
custom: {
50: '#d2c974',
500: '#bab333',
950: '#000000',
},
}SCSS
$custom: #bab333; $custom-light: #d2c974; $custom-dark: #000000;
JSON
{
"hex": "#bab333",
"rgb": {
"r": 186,
"g": 179,
"b": 51
},
"hsl": {
"h": 56.889,
"s": 56.962,
"l": 46.471
},
"oklch": {
"l": 0.75014,
"c": 0.14322,
"h": 106.2
},
"luminance": 0.42918
}Semantic roles & 50–950 ramp
primary
#BAB333
secondary
#8084C9
accent
#4FE048
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B