#BA9A31#BA9A31
#BA9A31 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.7% C 0.125 H 91.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9A31 |
|---|---|
| RGB | rgb(186, 154, 49) |
| HSL | hsl(46, 58%, 46%) |
| HSV | hsv(46, 74%, 73%) |
| CMYK | cmyk(0%, 17.2%, 73.7%, 27.1%) |
| CIE-LAB | lab(64.78, 0.94, 56.50) |
| CIE-LCH | lch(64.78, 56.51, 89.05°) |
| OKLab | oklab(69.68% -0.003 0.125) |
| OKLCH | oklch(69.68% 0.125 91.4) |
| XYZ | xyz(32.3615, 33.7740, 7.7197) |
| Luminance | 0.3377 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Gold
#B59410
ΔE00 2.80
Ocher
#BF9B0C
ΔE00 2.95
Yellow Brown
#B79400
ΔE00 3.25
Brown Yellow
#B29705
ΔE00 3.55
Ocre
#C69C04
ΔE00 4.03
Baby Shit Brown
#AD900D
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9A31 #3151BA
analogous
#BA5531 #BA9A31 #95BA31
triadic
#BA9A31 #31BA9A #9A31BA
tetradic
#BA9A31 #31BA55 #3151BA #BA3195
square
#BA9A31 #31BA55 #3151BA #BA3195
split-complementary
#BA9A31 #3195BA #5531BA
monochromatic
#594A17 #8A7224 #BA9A31 #D2B556 #DFCA86
Accessibility & contrast
On white
2.71
#BA9A31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#BA9A31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9A31
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9A31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9A31 | 1.00 | 2.71 | 7.75 | 7.75 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AB9821
Deuteranopia (green-blind)
#B3A137
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #ba9a31; /* rgb */ color: rgb(186, 154, 49); /* oklch */ color: oklch(69.7% 0.125 91.4);
Tailwind
colors: {
custom: {
50: '#d3b770',
500: '#ba9a31',
950: '#000000',
},
}SCSS
$custom: #ba9a31; $custom-light: #d3b770; $custom-dark: #000000;
JSON
{
"hex": "#ba9a31",
"rgb": {
"r": 186,
"g": 154,
"b": 49
},
"hsl": {
"h": 45.985,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.69682,
"c": 0.125,
"h": 91.4
},
"luminance": 0.33772
}Semantic roles & 50–950 ramp
primary
#BA9A31
secondary
#7E8FC9
accent
#6BE246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B