#BA9B28#BA9B28
#BA9B28 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.131 H 92.9°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9B28 |
|---|---|
| RGB | rgb(186, 155, 40) |
| HSL | hsl(47, 65%, 44%) |
| HSV | hsv(47, 78%, 73%) |
| CMYK | cmyk(0%, 16.7%, 78.5%, 27.1%) |
| CIE-LAB | lab(64.99, 0.02, 60.01) |
| CIE-LCH | lch(64.99, 60.01, 89.98°) |
| OKLab | oklab(69.83% -0.0066 0.1306) |
| OKLCH | oklch(69.83% 0.131 92.9) |
| XYZ | xyz(32.3559, 34.0370, 6.8726) |
| Luminance | 0.3403 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.17
Dark Gold
#B59410
ΔE00 2.39
Brown Yellow
#B29705
ΔE00 2.66
Yellow Brown
#B79400
ΔE00 2.77
Ocre
#C69C04
ΔE00 3.60
Baby Shit Brown
#AD900D
ΔE00 3.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9B28 #2847BA
analogous
#BA5228 #BA9B28 #90BA28
triadic
#BA9B28 #28BA9B #9B28BA
tetradic
#BA9B28 #28BA52 #2847BA #BA2890
square
#BA9B28 #28BA52 #2847BA #BA2890
split-complementary
#BA9B28 #2890BA #5228BA
monochromatic
#554712 #88711D #BA9B28 #D8B948 #E2CC7A
Accessibility & contrast
On white
2.69
#BA9B28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#BA9B28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9B28
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9B28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9B28 | 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)
#AD980F
Deuteranopia (green-blind)
#B4A22F
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #ba9b28; /* rgb */ color: rgb(186, 155, 40); /* oklch */ color: oklch(69.8% 0.131 92.9);
Tailwind
colors: {
custom: {
50: '#d3b86c',
500: '#ba9b28',
950: '#000000',
},
}SCSS
$custom: #ba9b28; $custom-light: #d3b86c; $custom-dark: #000000;
JSON
{
"hex": "#ba9b28",
"rgb": {
"r": 186,
"g": 155,
"b": 40
},
"hsl": {
"h": 47.26,
"s": 64.602,
"l": 44.314
},
"oklch": {
"l": 0.6983,
"c": 0.13077,
"h": 92.9
},
"luminance": 0.34035
}Semantic roles & 50–950 ramp
primary
#BA9B28
secondary
#7386CA
accent
#64E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A