#BAB23E#BAB23E
#BAB23E is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.9% C 0.135 H 105.4°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB23E |
|---|---|
| RGB | rgb(186, 178, 62) |
| HSL | hsl(56, 50%, 49%) |
| HSV | hsv(56, 67%, 73%) |
| CMYK | cmyk(0%, 4.3%, 66.7%, 27.1%) |
| CIE-LAB | lab(71.30, -11.09, 57.85) |
| CIE-LCH | lch(71.30, 58.90, 100.85°) |
| OKLab | oklab(74.88% -0.0358 0.1301) |
| OKLCH | oklch(74.88% 0.135 105.4) |
| XYZ | xyz(37.0410, 42.6290, 10.8336) |
| Luminance | 0.4263 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 4.33
Muddy Yellow
#BFAC05
ΔE00 4.79
Puke Yellow
#C2BE0E
ΔE00 5.13
Puke
#A5A502
ΔE00 5.39
Vomit
#A2A415
ΔE00 5.59
Mustard Green
#A8B504
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB23E #3E46BA
analogous
#BA743E #BAB23E #84BA3E
triadic
#BAB23E #3EBAB2 #B23EBA
tetradic
#BAB23E #3EBA74 #3E46BA #BA3E84
square
#BAB23E #3EBA74 #3E46BA #BA3E84
split-complementary
#BAB23E #3E84BA #743EBA
monochromatic
#5E5A1F #8C862F #BAB23E #CDC668 #DCD896
Accessibility & contrast
On white
2.20
#BAB23E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.53
#BAB23E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB23E
9.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB23E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB23E | 1.00 | 2.20 | 9.53 | 9.53 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AC2E
Deuteranopia (green-blind)
#C4B145
Tritanopia (blue-blind)
#C7A69A
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab23e; /* rgb */ color: rgb(186, 178, 62); /* oklch */ color: oklch(74.9% 0.135 105.4);
Tailwind
colors: {
custom: {
50: '#d2c87a',
500: '#bab23e',
950: '#000000',
},
}SCSS
$custom: #bab23e; $custom-light: #d2c87a; $custom-dark: #000000;
JSON
{
"hex": "#bab23e",
"rgb": {
"r": 186,
"g": 178,
"b": 62
},
"hsl": {
"h": 56.129,
"s": 50,
"l": 48.627
},
"oklch": {
"l": 0.7488,
"c": 0.13495,
"h": 105.4
},
"luminance": 0.42628
}Semantic roles & 50–950 ramp
primary
#BAB23E
secondary
#8C90C8
accent
#57DA4E
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B