#BAB548#BAB548
#BAB548 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.130 H 106.6°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB548 |
|---|---|
| RGB | rgb(186, 181, 72) |
| HSL | hsl(57, 45%, 51%) |
| HSV | hsv(57, 61%, 73%) |
| CMYK | cmyk(0%, 2.7%, 61.3%, 27.1%) |
| CIE-LAB | lab(72.20, -12.01, 54.57) |
| CIE-LCH | lch(72.20, 55.87, 102.41°) |
| OKLab | oklab(75.62% -0.0373 0.1247) |
| OKLCH | oklch(75.62% 0.13 106.6) |
| XYZ | xyz(37.9445, 43.9559, 12.6152) |
| Luminance | 0.4395 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 5.01
Olive Yellow
#C2B709
ΔE00 5.28
Puke Yellow
#C2BE0E
ΔE00 5.55
Mustard Green
#A8B504
ΔE00 5.87
Snot
#ACBB0D
ΔE00 6.13
Muddy Yellow
#BFAC05
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB548 #484DBA
analogous
#BA7C48 #BAB548 #86BA48
triadic
#BAB548 #48BAB5 #B548BA
tetradic
#BAB548 #48BA7C #484DBA #BA4886
square
#BAB548 #48BA7C #484DBA #BA4886
split-complementary
#BAB548 #4886BA #7C48BA
monochromatic
#626025 #8F8B36 #BAB548 #CBC774 #DCD9A1
Accessibility & contrast
On white
2.14
#BAB548 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.79
#BAB548 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB548
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB548 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB548 | 1.00 | 2.14 | 9.79 | 9.79 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AF3B
Deuteranopia (green-blind)
#C6B34E
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #bab548; /* rgb */ color: rgb(186, 181, 72); /* oklch */ color: oklch(75.6% 0.130 106.6);
Tailwind
colors: {
custom: {
50: '#d1ca80',
500: '#bab548',
950: '#000000',
},
}SCSS
$custom: #bab548; $custom-light: #d1ca80; $custom-dark: #000000;
JSON
{
"hex": "#bab548",
"rgb": {
"r": 186,
"g": 181,
"b": 72
},
"hsl": {
"h": 57.368,
"s": 45.238,
"l": 50.588
},
"oklch": {
"l": 0.7562,
"c": 0.13016,
"h": 106.6
},
"luminance": 0.43955
}Semantic roles & 50–950 ramp
primary
#BAB548
secondary
#9698C8
accent
#59D553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C