#BAB72D#BAB72D
#BAB72D is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.8% C 0.150 H 108.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB72D |
|---|---|
| RGB | rgb(186, 183, 45) |
| HSL | hsl(59, 61%, 45%) |
| HSV | hsv(59, 76%, 73%) |
| CMYK | cmyk(0%, 1.6%, 75.8%, 27.1%) |
| CIE-LAB | lab(72.56, -14.49, 65.29) |
| CIE-LCH | lch(72.56, 66.87, 102.51°) |
| OKLab | oklab(75.85% -0.047 0.1429) |
| OKLCH | oklch(75.85% 0.15 108.2) |
| XYZ | xyz(37.6583, 44.4968, 9.0872) |
| Luminance | 0.4450 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 2.93
Olive Yellow
#C2B709
ΔE00 3.02
Vomit Yellow
#C7C10C
ΔE00 3.83
Mustard Green
#A8B504
ΔE00 4.06
Snot
#ACBB0D
ΔE00 4.22
Bile
#B5C306
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB72D #2D30BA
analogous
#BA702D #BAB72D #77BA2D
triadic
#BAB72D #2DBAB7 #B72DBA
tetradic
#BAB72D #2DBA70 #2D30BA #BA2D77
square
#BAB72D #2DBA70 #2D30BA #BA2D77
split-complementary
#BAB72D #2D77BA #702DBA
monochromatic
#575615 #898721 #BAB72D #D5D250 #E0DE81
Accessibility & contrast
On white
2.12
#BAB72D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.90
#BAB72D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB72D
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB72D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB72D | 1.00 | 2.12 | 9.90 | 9.90 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF0A
Deuteranopia (green-blind)
#C9B438
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #bab72d; /* rgb */ color: rgb(186, 183, 45); /* oklch */ color: oklch(75.8% 0.150 108.2);
Tailwind
colors: {
custom: {
50: '#d3cc71',
500: '#bab72d',
950: '#000000',
},
}SCSS
$custom: #bab72d; $custom-light: #d3cc71; $custom-dark: #000000;
JSON
{
"hex": "#bab72d",
"rgb": {
"r": 186,
"g": 183,
"b": 45
},
"hsl": {
"h": 58.723,
"s": 61.039,
"l": 45.294
},
"oklch": {
"l": 0.75848,
"c": 0.15039,
"h": 108.2
},
"luminance": 0.44496
}Semantic roles & 50–950 ramp
primary
#BAB72D
secondary
#797BC9
accent
#47E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B