#BAB931#BAB931
#BAB931 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.3% C 0.150 H 109.1°. Best body text is #000000 at 10.07:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB931 |
|---|---|
| RGB | rgb(186, 185, 49) |
| HSL | hsl(60, 58%, 46%) |
| HSV | hsv(60, 74%, 73%) |
| CMYK | cmyk(0%, 0.5%, 73.7%, 27.1%) |
| CIE-LAB | lab(73.13, -15.33, 64.50) |
| CIE-LCH | lch(73.13, 66.30, 103.37°) |
| OKLab | oklab(76.31% -0.049 0.1419) |
| OKLCH | oklch(76.31% 0.15 109.1) |
| XYZ | xyz(38.1545, 45.3600, 9.6506) |
| Luminance | 0.4536 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 2.98
Olive Yellow
#C2B709
ΔE00 3.54
Snot
#ACBB0D
ΔE00 3.83
Vomit Yellow
#C7C10C
ΔE00 3.85
Mustard Green
#A8B504
ΔE00 3.89
Bile
#B5C306
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB931 #3132BA
analogous
#BA7431 #BAB931 #76BA31
triadic
#BAB931 #31BAB9 #B931BA
tetradic
#BAB931 #31BA74 #3132BA #BA3176
square
#BAB931 #31BA74 #3132BA #BA3176
split-complementary
#BAB931 #3176BA #7431BA
monochromatic
#595917 #8A8924 #BAB931 #D2D256 #DFDF86
Accessibility & contrast
On white
2.09
#BAB931 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.07
#BAB931 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB931
10.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB931 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB931 | 1.00 | 2.09 | 10.07 | 10.07 |
| #FFFFFF | 2.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#CAB63C
Tritanopia (blue-blind)
#C7AD9F
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #bab931; /* rgb */ color: rgb(186, 185, 49); /* oklch */ color: oklch(76.3% 0.150 109.1);
Tailwind
colors: {
custom: {
50: '#d2cd73',
500: '#bab931',
950: '#000000',
},
}SCSS
$custom: #bab931; $custom-light: #d2cd73; $custom-dark: #000000;
JSON
{
"hex": "#bab931",
"rgb": {
"r": 186,
"g": 185,
"b": 49
},
"hsl": {
"h": 59.562,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.76309,
"c": 0.15014,
"h": 109.1
},
"luminance": 0.45359
}Semantic roles & 50–950 ramp
primary
#BAB931
secondary
#7E7FC9
accent
#47E246
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B