#BA9D27#BA9D27
#BA9D27 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.2% C 0.133 H 94.3°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9D27 |
|---|---|
| RGB | rgb(186, 157, 39) |
| HSL | hsl(48, 65%, 44%) |
| HSV | hsv(48, 79%, 73%) |
| CMYK | cmyk(0%, 15.6%, 79%, 27.1%) |
| CIE-LAB | lab(65.52, -1.10, 60.82) |
| CIE-LCH | lch(65.52, 60.83, 91.03°) |
| OKLab | oklab(70.24% -0.0099 0.1321) |
| OKLCH | oklch(70.24% 0.133 94.3) |
| XYZ | xyz(32.6747, 34.7014, 6.8961) |
| Luminance | 0.3470 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.38
Brown Yellow
#B29705
ΔE00 2.57
Dark Gold
#B59410
ΔE00 2.92
Yellow Brown
#B79400
ΔE00 3.27
Ocre
#C69C04
ΔE00 3.90
Baby Shit Brown
#AD900D
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9D27 #2744BA
analogous
#BA5427 #BA9D27 #8EBA27
triadic
#BA9D27 #27BA9D #9D27BA
tetradic
#BA9D27 #27BA54 #2744BA #BA278E
square
#BA9D27 #27BA54 #2744BA #BA278E
split-complementary
#BA9D27 #278EBA #5427BA
monochromatic
#554812 #87721C #BA9D27 #D8BB46 #E3CE79
Accessibility & contrast
On white
2.64
#BA9D27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.94
#BA9D27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9D27
7.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9D27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9D27 | 1.00 | 2.64 | 7.94 | 7.94 |
| #FFFFFF | 2.64 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9A0B
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F
Design tokens & code
CSS
--color: #ba9d27; /* rgb */ color: rgb(186, 157, 39); /* oklch */ color: oklch(70.2% 0.133 94.3);
Tailwind
colors: {
custom: {
50: '#d3b96b',
500: '#ba9d27',
950: '#000000',
},
}SCSS
$custom: #ba9d27; $custom-light: #d3b96b; $custom-dark: #000000;
JSON
{
"hex": "#ba9d27",
"rgb": {
"r": 186,
"g": 157,
"b": 39
},
"hsl": {
"h": 48.163,
"s": 65.333,
"l": 44.118
},
"oklch": {
"l": 0.70242,
"c": 0.1325,
"h": 94.3
},
"luminance": 0.347
}Semantic roles & 50–950 ramp
primary
#BA9D27
secondary
#7284CB
accent
#61E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A