#BA9E2F#BA9E2F
#BA9E2F is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.5% C 0.129 H 94.3°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9E2F |
|---|---|
| RGB | rgb(186, 158, 47) |
| HSL | hsl(48, 60%, 46%) |
| HSV | hsv(48, 75%, 73%) |
| CMYK | cmyk(0%, 15.1%, 74.7%, 27.1%) |
| CIE-LAB | lab(65.83, -1.31, 58.28) |
| CIE-LCH | lch(65.83, 58.30, 91.29°) |
| OKLab | oklab(70.5% -0.0096 0.1283) |
| OKLCH | oklch(70.5% 0.129 94.3) |
| XYZ | xyz(32.9914, 35.0999, 7.7260) |
| Luminance | 0.3510 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 3.03
Brown Yellow
#B29705
ΔE00 3.14
Dark Gold
#B59410
ΔE00 3.46
Yellow Brown
#B79400
ΔE00 3.88
Ocre
#C69C04
ΔE00 4.40
Baby Shit Brown
#AD900D
ΔE00 4.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9E2F #2F4BBA
analogous
#BA592F #BA9E2F #90BA2F
triadic
#BA9E2F #2FBA9E #9E2FBA
tetradic
#BA9E2F #2FBA59 #2F4BBA #BA2F90
square
#BA9E2F #2FBA59 #2F4BBA #BA2F90
split-complementary
#BA9E2F #2F90BA #592FBA
monochromatic
#584B16 #897423 #BA9E2F #D3BA53 #E0CD84
Accessibility & contrast
On white
2.62
#BA9E2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.02
#BA9E2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9E2F
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9E2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9E2F | 1.00 | 2.62 | 8.02 | 8.02 |
| #FFFFFF | 2.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9B1C
Deuteranopia (green-blind)
#B6A436
Tritanopia (blue-blind)
#C99188
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #ba9e2f; /* rgb */ color: rgb(186, 158, 47); /* oklch */ color: oklch(70.5% 0.129 94.3);
Tailwind
colors: {
custom: {
50: '#d3ba6f',
500: '#ba9e2f',
950: '#000000',
},
}SCSS
$custom: #ba9e2f; $custom-light: #d3ba6f; $custom-dark: #000000;
JSON
{
"hex": "#ba9e2f",
"rgb": {
"r": 186,
"g": 158,
"b": 47
},
"hsl": {
"h": 47.914,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.70502,
"c": 0.12869,
"h": 94.3
},
"luminance": 0.35098
}Semantic roles & 50–950 ramp
primary
#BA9E2F
secondary
#7C8BC9
accent
#65E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B