#BAB545#BAB545
#BAB545 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.6% C 0.133 H 106.7°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB545 |
|---|---|
| RGB | rgb(186, 181, 69) |
| HSL | hsl(57, 46%, 50%) |
| HSV | hsv(57, 63%, 73%) |
| CMYK | cmyk(0%, 2.7%, 62.9%, 27.1%) |
| CIE-LAB | lab(72.17, -12.20, 55.84) |
| CIE-LCH | lch(72.17, 57.15, 102.33°) |
| OKLab | oklab(75.59% -0.0382 0.127) |
| OKLCH | oklch(75.59% 0.133 106.7) |
| XYZ | xyz(37.8490, 43.9177, 12.1123) |
| Luminance | 0.4392 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 4.95
Puke Yellow
#C2BE0E
ΔE00 5.23
Darkkhaki
#BDB76B
ΔE00 5.37
Mustard Green
#A8B504
ΔE00 5.62
Snot
#ACBB0D
ΔE00 5.89
Vomit Yellow
#C7C10C
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB545 #454ABA
analogous
#BA7B45 #BAB545 #84BA45
triadic
#BAB545 #45BAB5 #B545BA
tetradic
#BAB545 #45BA7B #454ABA #BA4584
square
#BAB545 #45BA7B #454ABA #BA4584
split-complementary
#BAB545 #4584BA #7B45BA
monochromatic
#615E24 #8D8A34 #BAB545 #CBC772 #DBD99E
Accessibility & contrast
On white
2.15
#BAB545 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#BAB545 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB545
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB545 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB545 | 1.00 | 2.15 | 9.78 | 9.78 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AE37
Deuteranopia (green-blind)
#C6B34C
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab545; /* rgb */ color: rgb(186, 181, 69); /* oklch */ color: oklch(75.6% 0.133 106.7);
Tailwind
colors: {
custom: {
50: '#d2ca7e',
500: '#bab545',
950: '#000000',
},
}SCSS
$custom: #bab545; $custom-light: #d2ca7e; $custom-dark: #000000;
JSON
{
"hex": "#bab545",
"rgb": {
"r": 186,
"g": 181,
"b": 69
},
"hsl": {
"h": 57.436,
"s": 45.882,
"l": 50
},
"oklch": {
"l": 0.75591,
"c": 0.13258,
"h": 106.7
},
"luminance": 0.43917
}Semantic roles & 50–950 ramp
primary
#BAB545
secondary
#9395C8
accent
#58D652
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C