#BA9B31#BA9B31
#BA9B31 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.9% C 0.126 H 92.1°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9B31 |
|---|---|
| RGB | rgb(186, 155, 49) |
| HSL | hsl(46, 58%, 46%) |
| HSV | hsv(46, 74%, 73%) |
| CMYK | cmyk(0%, 16.7%, 73.7%, 27.1%) |
| CIE-LAB | lab(65.05, 0.40, 56.76) |
| CIE-LCH | lch(65.05, 56.76, 89.60°) |
| OKLab | oklab(69.89% -0.0045 0.1255) |
| OKLCH | oklch(69.89% 0.126 92.1) |
| XYZ | xyz(32.5272, 34.1055, 7.7749) |
| Luminance | 0.3410 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Gold
#B59410
ΔE00 2.91
Ocher
#BF9B0C
ΔE00 2.91
Yellow Brown
#B79400
ΔE00 3.37
Brown Yellow
#B29705
ΔE00 3.41
Ocre
#C69C04
ΔE00 4.08
Baby Shit Brown
#AD900D
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9B31 #3150BA
analogous
#BA5631 #BA9B31 #94BA31
triadic
#BA9B31 #31BA9B #9B31BA
tetradic
#BA9B31 #31BA56 #3150BA #BA3194
square
#BA9B31 #31BA56 #3150BA #BA3194
split-complementary
#BA9B31 #3194BA #5631BA
monochromatic
#594A17 #8A7324 #BA9B31 #D2B656 #DFCB86
Accessibility & contrast
On white
2.69
#BA9B31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.82
#BA9B31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9B31
7.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9B31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9B31 | 1.00 | 2.69 | 7.82 | 7.82 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AC9920
Deuteranopia (green-blind)
#B4A237
Tritanopia (blue-blind)
#C98E86
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #ba9b31; /* rgb */ color: rgb(186, 155, 49); /* oklch */ color: oklch(69.9% 0.126 92.1);
Tailwind
colors: {
custom: {
50: '#d3b870',
500: '#ba9b31',
950: '#000000',
},
}SCSS
$custom: #ba9b31; $custom-light: #d3b870; $custom-dark: #000000;
JSON
{
"hex": "#ba9b31",
"rgb": {
"r": 186,
"g": 155,
"b": 49
},
"hsl": {
"h": 46.423,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.6989,
"c": 0.12558,
"h": 92.1
},
"luminance": 0.34104
}Semantic roles & 50–950 ramp
primary
#BA9B31
secondary
#7E8FC9
accent
#69E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B