#BA9C28#BA9C28
#BA9C28 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.0% C 0.131 H 93.5°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9C28 |
|---|---|
| RGB | rgb(186, 156, 40) |
| HSL | hsl(48, 65%, 44%) |
| HSV | hsv(48, 78%, 73%) |
| CMYK | cmyk(0%, 16.1%, 78.5%, 27.1%) |
| CIE-LAB | lab(65.26, -0.52, 60.25) |
| CIE-LCH | lch(65.26, 60.25, 90.50°) |
| OKLab | oklab(70.04% -0.0081 0.1311) |
| OKLCH | oklch(70.04% 0.131 93.5) |
| XYZ | xyz(32.5230, 34.3712, 6.9283) |
| Luminance | 0.3437 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 2.27
Brown Yellow
#B29705
ΔE00 2.61
Dark Gold
#B59410
ΔE00 2.65
Yellow Brown
#B79400
ΔE00 3.02
Ocre
#C69C04
ΔE00 3.74
Baby Shit Brown
#AD900D
ΔE00 3.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9C28 #2846BA
analogous
#BA5328 #BA9C28 #8FBA28
triadic
#BA9C28 #28BA9C #9C28BA
tetradic
#BA9C28 #28BA53 #2846BA #BA288F
square
#BA9C28 #28BA53 #2846BA #BA288F
split-complementary
#BA9C28 #288FBA #5328BA
monochromatic
#554812 #88721D #BA9C28 #D8BA48 #E2CD7A
Accessibility & contrast
On white
2.67
#BA9C28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.87
#BA9C28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9C28
7.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9C28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9C28 | 1.00 | 2.67 | 7.87 | 7.87 |
| #FFFFFF | 2.67 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD990E
Deuteranopia (green-blind)
#B5A230
Tritanopia (blue-blind)
#C98F86
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #ba9c28; /* rgb */ color: rgb(186, 156, 40); /* oklch */ color: oklch(70.0% 0.131 93.5);
Tailwind
colors: {
custom: {
50: '#d3b86c',
500: '#ba9c28',
950: '#000000',
},
}SCSS
$custom: #ba9c28; $custom-light: #d3b86c; $custom-dark: #000000;
JSON
{
"hex": "#ba9c28",
"rgb": {
"r": 186,
"g": 156,
"b": 40
},
"hsl": {
"h": 47.671,
"s": 64.602,
"l": 44.314
},
"oklch": {
"l": 0.70039,
"c": 0.13136,
"h": 93.5
},
"luminance": 0.34369
}Semantic roles & 50–950 ramp
primary
#BA9C28
secondary
#7385CA
accent
#63E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A