#BA9D2F#BA9D2F
#BA9D2F is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.3% C 0.128 H 93.6°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9D2F |
|---|---|
| RGB | rgb(186, 157, 47) |
| HSL | hsl(47, 60%, 46%) |
| HSV | hsv(47, 75%, 73%) |
| CMYK | cmyk(0%, 15.6%, 74.7%, 27.1%) |
| CIE-LAB | lab(65.56, -0.77, 58.03) |
| CIE-LCH | lch(65.56, 58.03, 90.76°) |
| OKLab | oklab(70.29% -0.0081 0.1278) |
| OKLCH | oklch(70.29% 0.128 93.6) |
| XYZ | xyz(32.8215, 34.7602, 7.6694) |
| Luminance | 0.3476 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.87
Brown Yellow
#B29705
ΔE00 3.11
Dark Gold
#B59410
ΔE00 3.19
Yellow Brown
#B79400
ΔE00 3.62
Ocre
#C69C04
ΔE00 4.21
Baby Shit Brown
#AD900D
ΔE00 4.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9D2F #2F4CBA
analogous
#BA572F #BA9D2F #91BA2F
triadic
#BA9D2F #2FBA9D #9D2FBA
tetradic
#BA9D2F #2FBA57 #2F4CBA #BA2F91
square
#BA9D2F #2FBA57 #2F4CBA #BA2F91
split-complementary
#BA9D2F #2F91BA #572FBA
monochromatic
#584B16 #897423 #BA9D2F #D3B953 #E0CD84
Accessibility & contrast
On white
2.64
#BA9D2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.95
#BA9D2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9D2F
7.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9D2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9D2F | 1.00 | 2.64 | 7.95 | 7.95 |
| #FFFFFF | 2.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9A1C
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #ba9d2f; /* rgb */ color: rgb(186, 157, 47); /* oklch */ color: oklch(70.3% 0.128 93.6);
Tailwind
colors: {
custom: {
50: '#d3b96f',
500: '#ba9d2f',
950: '#000000',
},
}SCSS
$custom: #ba9d2f; $custom-light: #d3b96f; $custom-dark: #000000;
JSON
{
"hex": "#ba9d2f",
"rgb": {
"r": 186,
"g": 157,
"b": 47
},
"hsl": {
"h": 47.482,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.70293,
"c": 0.12805,
"h": 93.6
},
"luminance": 0.34758
}Semantic roles & 50–950 ramp
primary
#BA9D2F
secondary
#7C8CC9
accent
#66E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B