#BAB731#BAB731
#BAB731 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.9% C 0.148 H 108.2°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB731 |
|---|---|
| RGB | rgb(186, 183, 49) |
| HSL | hsl(59, 58%, 46%) |
| HSV | hsv(59, 74%, 73%) |
| CMYK | cmyk(0%, 1.6%, 73.7%, 27.1%) |
| CIE-LAB | lab(72.58, -14.32, 63.98) |
| CIE-LCH | lch(72.58, 65.56, 102.61°) |
| OKLab | oklab(75.87% -0.0462 0.1408) |
| OKLCH | oklch(75.87% 0.148 108.2) |
| XYZ | xyz(37.7390, 44.5291, 9.5122) |
| Luminance | 0.4453 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 3.19
Olive Yellow
#C2B709
ΔE00 3.27
Vomit Yellow
#C7C10C
ΔE00 4.05
Mustard Green
#A8B504
ΔE00 4.16
Snot
#ACBB0D
ΔE00 4.32
Bile
#B5C306
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB731 #3134BA
analogous
#BA7231 #BAB731 #78BA31
triadic
#BAB731 #31BAB7 #B731BA
tetradic
#BAB731 #31BA72 #3134BA #BA3178
square
#BAB731 #31BA72 #3134BA #BA3178
split-complementary
#BAB731 #3178BA #7231BA
monochromatic
#595817 #8A8724 #BAB731 #D2D056 #DFDD86
Accessibility & contrast
On white
2.12
#BAB731 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.91
#BAB731 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB731
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB731 | 1.00 | 2.12 | 9.91 | 9.91 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6B015
Deuteranopia (green-blind)
#C9B43B
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #bab731; /* rgb */ color: rgb(186, 183, 49); /* oklch */ color: oklch(75.9% 0.148 108.2);
Tailwind
colors: {
custom: {
50: '#d2cc73',
500: '#bab731',
950: '#000000',
},
}SCSS
$custom: #bab731; $custom-light: #d2cc73; $custom-dark: #000000;
JSON
{
"hex": "#bab731",
"rgb": {
"r": 186,
"g": 183,
"b": 49
},
"hsl": {
"h": 58.686,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.75871,
"c": 0.14819,
"h": 108.2
},
"luminance": 0.44528
}Semantic roles & 50–950 ramp
primary
#BAB731
secondary
#7E80C9
accent
#4AE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B