#BA9D2E#BA9D2E
#BA9D2E is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.3% C 0.129 H 93.7°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9D2E |
|---|---|
| RGB | rgb(186, 157, 46) |
| HSL | hsl(48, 60%, 45%) |
| HSV | hsv(48, 75%, 73%) |
| CMYK | cmyk(0%, 15.6%, 75.3%, 27.1%) |
| CIE-LAB | lab(65.56, -0.82, 58.39) |
| CIE-LCH | lch(65.56, 58.40, 90.80°) |
| OKLab | oklab(70.29% -0.0083 0.1284) |
| OKLCH | oklch(70.29% 0.129 93.7) |
| XYZ | xyz(32.8016, 34.7522, 7.5644) |
| Luminance | 0.3475 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.80
Brown Yellow
#B29705
ΔE00 3.03
Dark Gold
#B59410
ΔE00 3.14
Yellow Brown
#B79400
ΔE00 3.57
Ocre
#C69C04
ΔE00 4.17
Baby Shit Brown
#AD900D
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9D2E #2E4BBA
analogous
#BA572E #BA9D2E #91BA2E
triadic
#BA9D2E #2EBA9D #9D2EBA
tetradic
#BA9D2E #2EBA57 #2E4BBA #BA2E91
square
#BA9D2E #2EBA57 #2E4BBA #BA2E91
split-complementary
#BA9D2E #2E91BA #572EBA
monochromatic
#584A16 #897422 #BA9D2E #D4B951 #E0CD82
Accessibility & contrast
On white
2.64
#BA9D2E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.95
#BA9D2E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9D2E
7.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9D2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9D2E | 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)
#AE9A1A
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #ba9d2e; /* rgb */ color: rgb(186, 157, 46); /* oklch */ color: oklch(70.3% 0.129 93.7);
Tailwind
colors: {
custom: {
50: '#d3b96f',
500: '#ba9d2e',
950: '#000000',
},
}SCSS
$custom: #ba9d2e; $custom-light: #d3b96f; $custom-dark: #000000;
JSON
{
"hex": "#ba9d2e",
"rgb": {
"r": 186,
"g": 157,
"b": 46
},
"hsl": {
"h": 47.571,
"s": 60.345,
"l": 45.49
},
"oklch": {
"l": 0.70286,
"c": 0.12865,
"h": 93.7
},
"luminance": 0.3475
}Semantic roles & 50–950 ramp
primary
#BA9D2E
secondary
#7B8BC9
accent
#65E344
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B