#BA9A2D#BA9A2D
#BA9A2D is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.7% C 0.127 H 91.8°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9A2D |
|---|---|
| RGB | rgb(186, 154, 45) |
| HSL | hsl(46, 61%, 45%) |
| HSV | hsv(46, 76%, 73%) |
| CMYK | cmyk(0%, 17.2%, 75.8%, 27.1%) |
| CIE-LAB | lab(64.76, 0.76, 58.01) |
| CIE-LCH | lch(64.76, 58.01, 89.25°) |
| OKLab | oklab(69.65% -0.004 0.1274) |
| OKLCH | oklch(69.65% 0.127 91.8) |
| XYZ | xyz(32.2808, 33.7417, 7.2947) |
| Luminance | 0.3374 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Gold
#B59410
ΔE00 2.48
Ocher
#BF9B0C
ΔE00 2.57
Yellow Brown
#B79400
ΔE00 2.91
Brown Yellow
#B29705
ΔE00 3.18
Ocre
#C69C04
ΔE00 3.76
Baby Shit Brown
#AD900D
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9A2D #2D4DBA
analogous
#BA532D #BA9A2D #93BA2D
triadic
#BA9A2D #2DBA9A #9A2DBA
tetradic
#BA9A2D #2DBA53 #2D4DBA #BA2D93
square
#BA9A2D #2DBA53 #2D4DBA #BA2D93
split-complementary
#BA9A2D #2D93BA #532DBA
monochromatic
#574815 #897121 #BA9A2D #D5B650 #E0CB81
Accessibility & contrast
On white
2.71
#BA9A2D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.75
#BA9A2D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9A2D
7.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9A2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9A2D | 1.00 | 2.71 | 7.75 | 7.75 |
| #FFFFFF | 2.71 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AB981A
Deuteranopia (green-blind)
#B3A133
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #ba9a2d; /* rgb */ color: rgb(186, 154, 45); /* oklch */ color: oklch(69.7% 0.127 91.8);
Tailwind
colors: {
custom: {
50: '#d3b76e',
500: '#ba9a2d',
950: '#000000',
},
}SCSS
$custom: #ba9a2d; $custom-light: #d3b76e; $custom-dark: #000000;
JSON
{
"hex": "#ba9a2d",
"rgb": {
"r": 186,
"g": 154,
"b": 45
},
"hsl": {
"h": 46.383,
"s": 61.039,
"l": 45.294
},
"oklch": {
"l": 0.69654,
"c": 0.12741,
"h": 91.8
},
"luminance": 0.3374
}Semantic roles & 50–950 ramp
primary
#BA9A2D
secondary
#798CC9
accent
#68E444
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B