#BAB927#BAB927
#BAB927 is a light, vivid yellow. Relative luminance 0.453; OKLCH L 76.3% C 0.155 H 109.2°. Best body text is #000000 at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB927 |
|---|---|
| RGB | rgb(186, 185, 39) |
| HSL | hsl(60, 65%, 44%) |
| HSV | hsv(60, 79%, 73%) |
| CMYK | cmyk(0%, 0.5%, 79%, 27.1%) |
| CIE-LAB | lab(73.08, -15.73, 67.57) |
| CIE-LCH | lch(73.08, 69.38, 103.10°) |
| OKLab | oklab(76.25% -0.051 0.1466) |
| OKLCH | oklch(76.25% 0.155 109.2) |
| XYZ | xyz(37.9664, 45.2847, 8.6600) |
| Luminance | 0.4528 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 2.37
Olive Yellow
#C2B709
ΔE00 3.03
Vomit Yellow
#C7C10C
ΔE00 3.33
Snot
#ACBB0D
ΔE00 3.64
Mustard Green
#A8B504
ΔE00 3.70
Bile
#B5C306
ΔE00 4.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB927 #2728BA
analogous
#BA7027 #BAB927 #72BA27
triadic
#BAB927 #27BAB9 #B927BA
tetradic
#BAB927 #27BA70 #2728BA #BA2772
square
#BAB927 #27BA70 #2728BA #BA2772
split-complementary
#BAB927 #2772BA #7027BA
monochromatic
#555412 #87871C #BAB927 #D8D746 #E3E279
Accessibility & contrast
On white
2.09
#BAB927 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.06
#BAB927 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB927
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB927 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB927 | 1.00 | 2.09 | 10.06 | 10.06 |
| #FFFFFF | 2.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#CAB534
Tritanopia (blue-blind)
#C8AD9E
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab927; /* rgb */ color: rgb(186, 185, 39); /* oklch */ color: oklch(76.3% 0.155 109.2);
Tailwind
colors: {
custom: {
50: '#d3cd6f',
500: '#bab927',
950: '#000000',
},
}SCSS
$custom: #bab927; $custom-light: #d3cd6f; $custom-dark: #000000;
JSON
{
"hex": "#bab927",
"rgb": {
"r": 186,
"g": 185,
"b": 39
},
"hsl": {
"h": 59.592,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.76253,
"c": 0.15524,
"h": 109.2
},
"luminance": 0.45284
}Semantic roles & 50–950 ramp
primary
#BAB927
secondary
#7273CB
accent
#41E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B