#BAB627#BAB627
#BAB627 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.152 H 107.9°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB627 |
|---|---|
| RGB | rgb(186, 182, 39) |
| HSL | hsl(58, 65%, 44%) |
| HSV | hsv(58, 79%, 73%) |
| CMYK | cmyk(0%, 2.2%, 79%, 27.1%) |
| CIE-LAB | lab(72.26, -14.20, 66.85) |
| CIE-LCH | lch(72.26, 68.34, 102.00°) |
| OKLab | oklab(75.6% -0.0467 0.1451) |
| OKLCH | oklch(75.6% 0.152 107.9) |
| XYZ | xyz(37.3454, 44.0428, 8.4530) |
| Luminance | 0.4404 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 2.58
Puke Yellow
#C2BE0E
ΔE00 2.77
Vomit Yellow
#C7C10C
ΔE00 3.70
Mustard Green
#A8B504
ΔE00 4.14
Snot
#ACBB0D
ΔE00 4.40
Muddy Yellow
#BFAC05
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB627 #272BBA
analogous
#BA6D27 #BAB627 #75BA27
triadic
#BAB627 #27BAB6 #B627BA
tetradic
#BAB627 #27BA6D #272BBA #BA2775
square
#BAB627 #27BA6D #272BBA #BA2775
split-complementary
#BAB627 #2775BA #6D27BA
monochromatic
#555312 #87841C #BAB627 #D8D446 #E3E079
Accessibility & contrast
On white
2.14
#BAB627 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.81
#BAB627 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB627
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB627 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB627 | 1.00 | 2.14 | 9.81 | 9.81 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C8B334
Tritanopia (blue-blind)
#C8AA9C
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab627; /* rgb */ color: rgb(186, 182, 39); /* oklch */ color: oklch(75.6% 0.152 107.9);
Tailwind
colors: {
custom: {
50: '#d3cb6f',
500: '#bab627',
950: '#000000',
},
}SCSS
$custom: #bab627; $custom-light: #d3cb6f; $custom-dark: #000000;
JSON
{
"hex": "#bab627",
"rgb": {
"r": 186,
"g": 182,
"b": 39
},
"hsl": {
"h": 58.367,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.75597,
"c": 0.15242,
"h": 107.9
},
"luminance": 0.44041
}Semantic roles & 50–950 ramp
primary
#BAB627
secondary
#7275CB
accent
#44E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B