#BAB148#BAB148
#BAB148 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.8% C 0.126 H 104.4°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB148 |
|---|---|
| RGB | rgb(186, 177, 72) |
| HSL | hsl(55, 45%, 51%) |
| HSV | hsv(55, 61%, 73%) |
| CMYK | cmyk(0%, 4.8%, 61.3%, 27.1%) |
| CIE-LAB | lab(71.11, -9.94, 53.39) |
| CIE-LCH | lch(71.11, 54.30, 100.54°) |
| OKLab | oklab(74.76% -0.0314 0.1222) |
| OKLCH | oklch(74.76% 0.126 104.4) |
| XYZ | xyz(37.1429, 42.3526, 12.3480) |
| Luminance | 0.4235 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.93
Olive Yellow
#C2B709
ΔE00 5.52
Muddy Yellow
#BFAC05
ΔE00 5.58
Puke
#A5A502
ΔE00 6.09
Vomit
#A2A415
ΔE00 6.10
Puke Yellow
#C2BE0E
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB148 #4851BA
analogous
#BA7848 #BAB148 #8ABA48
triadic
#BAB148 #48BAB1 #B148BA
tetradic
#BAB148 #48BA78 #4851BA #BA488A
square
#BAB148 #48BA78 #4851BA #BA488A
split-complementary
#BAB148 #488ABA #7848BA
monochromatic
#625E25 #8F8836 #BAB148 #CBC474 #DCD7A1
Accessibility & contrast
On white
2.22
#BAB148 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.47
#BAB148 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB148
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB148 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB148 | 1.00 | 2.22 | 9.47 | 9.47 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AB3C
Deuteranopia (green-blind)
#C3B04E
Tritanopia (blue-blind)
#C7A69B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #bab148; /* rgb */ color: rgb(186, 177, 72); /* oklch */ color: oklch(74.8% 0.126 104.4);
Tailwind
colors: {
custom: {
50: '#d1c87f',
500: '#bab148',
950: '#000000',
},
}SCSS
$custom: #bab148; $custom-light: #d1c87f; $custom-dark: #000000;
JSON
{
"hex": "#bab148",
"rgb": {
"r": 186,
"g": 177,
"b": 72
},
"hsl": {
"h": 55.263,
"s": 45.238,
"l": 50.588
},
"oklch": {
"l": 0.74755,
"c": 0.12617,
"h": 104.4
},
"luminance": 0.42351
}Semantic roles & 50–950 ramp
primary
#BAB148
secondary
#969AC8
accent
#5DD553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130A
muted
#83827C