#BAB337#BAB337
#BAB337 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 75.0% C 0.141 H 106.1°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB337 |
|---|---|
| RGB | rgb(186, 179, 55) |
| HSL | hsl(57, 54%, 47%) |
| HSV | hsv(57, 70%, 73%) |
| CMYK | cmyk(0%, 3.8%, 70.4%, 27.1%) |
| CIE-LAB | lab(71.53, -11.98, 60.81) |
| CIE-LCH | lch(71.53, 61.98, 101.15°) |
| OKLab | oklab(75.04% -0.039 0.1352) |
| OKLCH | oklch(75.04% 0.141 106.1) |
| XYZ | xyz(37.0608, 42.9565, 9.9529) |
| Luminance | 0.4295 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.61
Puke Yellow
#C2BE0E
ΔE00 4.35
Muddy Yellow
#BFAC05
ΔE00 4.49
Vomit Yellow
#C7C10C
ΔE00 5.11
Puke
#A5A502
ΔE00 5.12
Mustard Green
#A8B504
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB337 #373EBA
analogous
#BA7237 #BAB337 #80BA37
triadic
#BAB337 #37BAB3 #B337BA
tetradic
#BAB337 #37BA72 #373EBA #BA3780
square
#BAB337 #37BA72 #373EBA #BA3780
split-complementary
#BAB337 #3780BA #7237BA
monochromatic
#5C581B #8B8629 #BAB337 #D0CA5F #DED98E
Accessibility & contrast
On white
2.19
#BAB337 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.59
#BAB337 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB337
9.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB337 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB337 | 1.00 | 2.19 | 9.59 | 9.59 |
| #FFFFFF | 2.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AC23
Deuteranopia (green-blind)
#C5B240
Tritanopia (blue-blind)
#C8A79B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #bab337; /* rgb */ color: rgb(186, 179, 55); /* oklch */ color: oklch(75.0% 0.141 106.1);
Tailwind
colors: {
custom: {
50: '#d2c976',
500: '#bab337',
950: '#000000',
},
}SCSS
$custom: #bab337; $custom-light: #d2c976; $custom-dark: #000000;
JSON
{
"hex": "#bab337",
"rgb": {
"r": 186,
"g": 179,
"b": 55
},
"hsl": {
"h": 56.794,
"s": 54.357,
"l": 47.255
},
"oklch": {
"l": 0.75042,
"c": 0.14071,
"h": 106.1
},
"luminance": 0.42955
}Semantic roles & 50–950 ramp
primary
#BAB337
secondary
#8588C8
accent
#52DE4A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B