#BA9B27#BA9B27
#BA9B27 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.131 H 93.0°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9B27 |
|---|---|
| RGB | rgb(186, 155, 39) |
| HSL | hsl(47, 65%, 44%) |
| HSV | hsv(47, 79%, 73%) |
| CMYK | cmyk(0%, 16.7%, 79%, 27.1%) |
| CIE-LAB | lab(64.99, -0.02, 60.34) |
| CIE-LCH | lch(64.99, 60.34, 90.02°) |
| OKLab | oklab(69.82% -0.0068 0.1311) |
| OKLCH | oklch(69.82% 0.131 93) |
| XYZ | xyz(32.3391, 34.0302, 6.7842) |
| Luminance | 0.3403 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.10
Dark Gold
#B59410
ΔE00 2.35
Brown Yellow
#B29705
ΔE00 2.60
Yellow Brown
#B79400
ΔE00 2.72
Ocre
#C69C04
ΔE00 3.56
Baby Shit Brown
#AD900D
ΔE00 3.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9B27 #2746BA
analogous
#BA5227 #BA9B27 #90BA27
triadic
#BA9B27 #27BA9B #9B27BA
tetradic
#BA9B27 #27BA52 #2746BA #BA2790
square
#BA9B27 #27BA52 #2746BA #BA2790
split-complementary
#BA9B27 #2790BA #5227BA
monochromatic
#554712 #87711C #BA9B27 #D8B946 #E3CC79
Accessibility & contrast
On white
2.69
#BA9B27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#BA9B27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9B27
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9B27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9B27 | 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)
#AD980C
Deuteranopia (green-blind)
#B4A22F
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #ba9b27; /* rgb */ color: rgb(186, 155, 39); /* oklch */ color: oklch(69.8% 0.131 93.0);
Tailwind
colors: {
custom: {
50: '#d3b86b',
500: '#ba9b27',
950: '#000000',
},
}SCSS
$custom: #ba9b27; $custom-light: #d3b86b; $custom-dark: #000000;
JSON
{
"hex": "#ba9b27",
"rgb": {
"r": 186,
"g": 155,
"b": 39
},
"hsl": {
"h": 47.347,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.69824,
"c": 0.13128,
"h": 93
},
"luminance": 0.34028
}Semantic roles & 50–950 ramp
primary
#BA9B27
secondary
#7285CB
accent
#63E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A