#BAB43A#BAB43A
#BAB43A is a light, vivid yellow. Relative luminance 0.434; OKLCH L 75.3% C 0.140 H 106.5°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB43A |
|---|---|
| RGB | rgb(186, 180, 58) |
| HSL | hsl(57, 52%, 48%) |
| HSV | hsv(57, 69%, 73%) |
| CMYK | cmyk(0%, 3.2%, 68.8%, 27.1%) |
| CIE-LAB | lab(71.82, -12.34, 59.96) |
| CIE-LCH | lch(71.82, 61.21, 101.63°) |
| OKLab | oklab(75.28% -0.0397 0.1339) |
| OKLCH | oklch(75.28% 0.14 106.5) |
| XYZ | xyz(37.3361, 43.3884, 10.4103) |
| Luminance | 0.4339 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.85
Puke Yellow
#C2BE0E
ΔE00 4.37
Muddy Yellow
#BFAC05
ΔE00 4.91
Mustard Green
#A8B504
ΔE00 5.11
Vomit Yellow
#C7C10C
ΔE00 5.13
Puke
#A5A502
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB43A #3A40BA
analogous
#BA743A #BAB43A #80BA3A
triadic
#BAB43A #3ABAB4 #B43ABA
tetradic
#BAB43A #3ABA74 #3A40BA #BA3A80
square
#BAB43A #3ABA74 #3A40BA #BA3A80
split-complementary
#BAB43A #3A80BA #743ABA
monochromatic
#5D5A1D #8B872B #BAB43A #CEC963 #DDD992
Accessibility & contrast
On white
2.17
#BAB43A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.68
#BAB43A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB43A
9.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB43A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB43A | 1.00 | 2.17 | 9.68 | 9.68 |
| #FFFFFF | 2.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD27
Deuteranopia (green-blind)
#C6B242
Tritanopia (blue-blind)
#C7A89C
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #bab43a; /* rgb */ color: rgb(186, 180, 58); /* oklch */ color: oklch(75.3% 0.140 106.5);
Tailwind
colors: {
custom: {
50: '#d2ca78',
500: '#bab43a',
950: '#000000',
},
}SCSS
$custom: #bab43a; $custom-light: #d2ca78; $custom-dark: #000000;
JSON
{
"hex": "#bab43a",
"rgb": {
"r": 186,
"g": 180,
"b": 58
},
"hsl": {
"h": 57.188,
"s": 52.459,
"l": 47.843
},
"oklch": {
"l": 0.75281,
"c": 0.13968,
"h": 106.5
},
"luminance": 0.43387
}Semantic roles & 50–950 ramp
primary
#BAB43A
secondary
#888BC8
accent
#53DC4C
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B