#BAB92D#BAB92D
#BAB92D is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.3% C 0.152 H 109.1°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB92D |
|---|---|
| RGB | rgb(186, 185, 45) |
| HSL | hsl(60, 61%, 45%) |
| HSV | hsv(60, 76%, 73%) |
| CMYK | cmyk(0%, 0.5%, 75.8%, 27.1%) |
| CIE-LAB | lab(73.11, -15.50, 65.79) |
| CIE-LCH | lch(73.11, 67.59, 103.26°) |
| OKLab | oklab(76.29% -0.0498 0.1439) |
| OKLCH | oklch(76.29% 0.152 109.1) |
| XYZ | xyz(38.0738, 45.3277, 9.2256) |
| Luminance | 0.4533 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 2.71
Olive Yellow
#C2B709
ΔE00 3.31
Vomit Yellow
#C7C10C
ΔE00 3.62
Snot
#ACBB0D
ΔE00 3.73
Mustard Green
#A8B504
ΔE00 3.79
Bile
#B5C306
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB92D #2D2EBA
analogous
#BA722D #BAB92D #75BA2D
triadic
#BAB92D #2DBAB9 #B92DBA
tetradic
#BAB92D #2DBA72 #2D2EBA #BA2D75
square
#BAB92D #2DBA72 #2D2EBA #BA2D75
split-complementary
#BAB92D #2D75BA #722DBA
monochromatic
#575715 #898821 #BAB92D #D5D450 #E0E081
Accessibility & contrast
On white
2.09
#BAB92D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.07
#BAB92D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB92D
10.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB92D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB92D | 1.00 | 2.09 | 10.07 | 10.07 |
| #FFFFFF | 2.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B108
Deuteranopia (green-blind)
#CAB639
Tritanopia (blue-blind)
#C8AD9F
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab92d; /* rgb */ color: rgb(186, 185, 45); /* oklch */ color: oklch(76.3% 0.152 109.1);
Tailwind
colors: {
custom: {
50: '#d3cd72',
500: '#bab92d',
950: '#000000',
},
}SCSS
$custom: #bab92d; $custom-light: #d3cd72; $custom-dark: #000000;
JSON
{
"hex": "#bab92d",
"rgb": {
"r": 186,
"g": 185,
"b": 45
},
"hsl": {
"h": 59.574,
"s": 61.039,
"l": 45.294
},
"oklch": {
"l": 0.76285,
"c": 0.15231,
"h": 109.1
},
"luminance": 0.45326
}Semantic roles & 50–950 ramp
primary
#BAB92D
secondary
#797AC9
accent
#45E444
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151308
muted
#83827B