#BA9F2E#BA9F2E
#BA9F2E is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.7% C 0.130 H 95.0°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9F2E |
|---|---|
| RGB | rgb(186, 159, 46) |
| HSL | hsl(48, 60%, 45%) |
| HSV | hsv(48, 75%, 73%) |
| CMYK | cmyk(0%, 14.5%, 75.3%, 27.1%) |
| CIE-LAB | lab(66.09, -1.89, 58.90) |
| CIE-LCH | lch(66.09, 58.93, 91.84°) |
| OKLab | oklab(70.71% -0.0114 0.1295) |
| OKLCH | oklch(70.71% 0.13 95) |
| XYZ | xyz(33.1427, 35.4345, 7.6781) |
| Luminance | 0.3543 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.17
Ocher
#BF9B0C
ΔE00 3.18
Dark Gold
#B59410
ΔE00 3.72
Yellow Brown
#B79400
ΔE00 4.12
Ocre
#C69C04
ΔE00 4.58
Baby Shit Brown
#AD900D
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9F2E #2E49BA
analogous
#BA592E #BA9F2E #8FBA2E
triadic
#BA9F2E #2EBA9F #9F2EBA
tetradic
#BA9F2E #2EBA59 #2E49BA #BA2E8F
square
#BA9F2E #2EBA59 #2E49BA #BA2E8F
split-complementary
#BA9F2E #2E8FBA #592EBA
monochromatic
#584B16 #897522 #BA9F2E #D4BB51 #E0CE82
Accessibility & contrast
On white
2.60
#BA9F2E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.09
#BA9F2E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9F2E
8.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9F2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9F2E | 1.00 | 2.60 | 8.09 | 8.09 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09C1A
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #ba9f2e; /* rgb */ color: rgb(186, 159, 46); /* oklch */ color: oklch(70.7% 0.130 95.0);
Tailwind
colors: {
custom: {
50: '#d3bb6f',
500: '#ba9f2e',
950: '#000000',
},
}SCSS
$custom: #ba9f2e; $custom-light: #d3bb6f; $custom-dark: #000000;
JSON
{
"hex": "#ba9f2e",
"rgb": {
"r": 186,
"g": 159,
"b": 46
},
"hsl": {
"h": 48.429,
"s": 60.345,
"l": 45.49
},
"oklch": {
"l": 0.70705,
"c": 0.12995,
"h": 95
},
"luminance": 0.35433
}Semantic roles & 50–950 ramp
primary
#BA9F2E
secondary
#7B8AC9
accent
#63E344
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B