#BAB938#BAB938
#BAB938 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.4% C 0.146 H 109.0°. Best body text is #000000 at 10.08:1 contrast (WCAG AA passes).
Color values
| HEX | #BAB938 |
|---|---|
| RGB | rgb(186, 185, 56) |
| HSL | hsl(60, 54%, 47%) |
| HSV | hsv(60, 70%, 73%) |
| CMYK | cmyk(0%, 0.5%, 69.9%, 27.1%) |
| CIE-LAB | lab(73.17, -15.00, 62.06) |
| CIE-LCH | lch(73.17, 63.84, 103.59°) |
| OKLab | oklab(76.35% -0.0474 0.138) |
| OKLCH | oklch(76.35% 0.146 109) |
| XYZ | xyz(38.3138, 45.4237, 10.4900) |
| Luminance | 0.4542 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke Yellow
#C2BE0E
ΔE00 3.53
Olive Yellow
#C2B709
ΔE00 4.01
Snot
#ACBB0D
ΔE00 4.10
Mustard Green
#A8B504
ΔE00 4.16
Vomit Yellow
#C7C10C
ΔE00 4.33
Bile
#B5C306
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAB938 #3839BA
analogous
#BA7838 #BAB938 #7ABA38
triadic
#BAB938 #38BAB9 #B938BA
tetradic
#BAB938 #38BA78 #3839BA #BA387A
square
#BAB938 #38BA78 #3839BA #BA387A
split-complementary
#BAB938 #387ABA #7838BA
monochromatic
#5C5B1C #8B8A2A #BAB938 #CFCE60 #DDDD8F
Accessibility & contrast
On white
2.08
#BAB938 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.08
#BAB938 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAB938
10.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAB938 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAB938 | 1.00 | 2.08 | 10.08 | 10.08 |
| #FFFFFF | 2.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B122
Deuteranopia (green-blind)
#CAB641
Tritanopia (blue-blind)
#C7ADA0
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #bab938; /* rgb */ color: rgb(186, 185, 56); /* oklch */ color: oklch(76.4% 0.146 109.0);
Tailwind
colors: {
custom: {
50: '#d2cd77',
500: '#bab938',
950: '#000000',
},
}SCSS
$custom: #bab938; $custom-light: #d2cd77; $custom-dark: #000000;
JSON
{
"hex": "#bab938",
"rgb": {
"r": 186,
"g": 185,
"b": 56
},
"hsl": {
"h": 59.538,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.76355,
"c": 0.14591,
"h": 109
},
"luminance": 0.45423
}Semantic roles & 50–950 ramp
primary
#BAB938
secondary
#8686C8
accent
#4CDD4B
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#151309
muted
#83827B