#BA9B2B#BA9B2B
#BA9B2B is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.8% C 0.129 H 92.6°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9B2B |
|---|---|
| RGB | rgb(186, 155, 43) |
| HSL | hsl(47, 62%, 45%) |
| HSV | hsv(47, 77%, 73%) |
| CMYK | cmyk(0%, 16.7%, 76.9%, 27.1%) |
| CIE-LAB | lab(65.01, 0.14, 58.97) |
| CIE-LCH | lch(65.01, 58.97, 89.87°) |
| OKLab | oklab(69.85% -0.006 0.129) |
| OKLCH | oklch(69.85% 0.129 92.6) |
| XYZ | xyz(32.4089, 34.0582, 7.1519) |
| Luminance | 0.3406 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.39
Dark Gold
#B59410
ΔE00 2.53
Brown Yellow
#B29705
ΔE00 2.88
Yellow Brown
#B79400
ΔE00 2.94
Ocre
#C69C04
ΔE00 3.73
Baby Shit Brown
#AD900D
ΔE00 3.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9B2B #2B4ABA
analogous
#BA542B #BA9B2B #91BA2B
triadic
#BA9B2B #2BBA9B #9B2BBA
tetradic
#BA9B2B #2BBA54 #2B4ABA #BA2B91
square
#BA9B2B #2BBA54 #2B4ABA #BA2B91
split-complementary
#BA9B2B #2B91BA #542BBA
monochromatic
#574814 #887220 #BA9B2B #D6B84C #E1CC7E
Accessibility & contrast
On white
2.69
#BA9B2B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#BA9B2B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9B2B
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9B2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9B2B | 1.00 | 2.69 | 7.81 | 7.81 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AC9915
Deuteranopia (green-blind)
#B4A232
Tritanopia (blue-blind)
#C98E85
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #ba9b2b; /* rgb */ color: rgb(186, 155, 43); /* oklch */ color: oklch(69.8% 0.129 92.6);
Tailwind
colors: {
custom: {
50: '#d3b86d',
500: '#ba9b2b',
950: '#000000',
},
}SCSS
$custom: #ba9b2b; $custom-light: #d3b86d; $custom-dark: #000000;
JSON
{
"hex": "#ba9b2b",
"rgb": {
"r": 186,
"g": 155,
"b": 43
},
"hsl": {
"h": 46.993,
"s": 62.445,
"l": 44.902
},
"oklch": {
"l": 0.69849,
"c": 0.12914,
"h": 92.6
},
"luminance": 0.34056
}Semantic roles & 50–950 ramp
primary
#BA9B2B
secondary
#7789CA
accent
#66E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A