#BAB82D#BAB82D
#BAB82D is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.151 H 108.7°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB82D |
|---|---|
| RGB | rgb(186, 184, 45) |
| HSL | hsl(59, 61%, 45%) |
| HSV | hsv(59, 76%, 73%) |
| CMYK | cmyk(0%, 1.1%, 75.8%, 27.1%) |
| CIE-LAB | lab(72.83, -14.99, 65.54) |
| CIE-LCH | lch(72.83, 67.23, 102.89°) |
| OKLab | oklab(76.07% -0.0484 0.1434) |
| OKLCH | oklch(76.07% 0.151 108.7) |
| XYZ | xyz(37.8653, 44.9108, 9.1562) |
| Luminance | 0.4491 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 2.80
Olive Yellow
#C2B709
ΔE00 3.15
Vomit Yellow
#C7C10C
ΔE00 3.71
Mustard Green
#A8B504
ΔE00 3.91
Snot
#ACBB0D
ΔE00 3.97
Bile
#B5C306
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB82D #2D2FBA
analogous
#BA712D #BAB82D #75BA2D
triadic
#BAB82D #2DBAB8 #B82DBA
tetradic
#BAB82D #2DBA71 #2D2FBA #BA2D75
square
#BAB82D #2DBA71 #2D2FBA #BA2D75
split-complementary
#BAB82D #2D75BA #712DBA
monochromatic
#575715 #898721 #BAB82D #D5D350 #E0DF81
Accessibility & contrast
On white
2.10
#BAB82D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.98
#BAB82D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB82D
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB82D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB82D | 1.00 | 2.10 | 9.98 | 9.98 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B009
Deuteranopia (green-blind)
#C9B538
Tritanopia (blue-blind)
#C8AC9E
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab82d; /* rgb */ color: rgb(186, 184, 45); /* oklch */ color: oklch(76.1% 0.151 108.7);
Tailwind
colors: {
custom: {
50: '#d3cd71',
500: '#bab82d',
950: '#000000',
},
}SCSS
$custom: #bab82d; $custom-light: #d3cd71; $custom-dark: #000000;
JSON
{
"hex": "#bab82d",
"rgb": {
"r": 186,
"g": 184,
"b": 45
},
"hsl": {
"h": 59.149,
"s": 61.039,
"l": 45.294
},
"oklch": {
"l": 0.76066,
"c": 0.15135,
"h": 108.7
},
"luminance": 0.4491
}Semantic roles & 50–950 ramp
primary
#BAB82D
secondary
#797BC9
accent
#46E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B