#BAA842#BAA842
#BAA842 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.123 H 99.3°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #BAA842 |
|---|---|
| RGB | rgb(186, 168, 66) |
| HSL | hsl(51, 48%, 49%) |
| HSV | hsv(51, 65%, 73%) |
| CMYK | cmyk(0%, 9.7%, 64.5%, 27.1%) |
| CIE-LAB | lab(68.63, -5.61, 53.36) |
| CIE-LCH | lch(68.63, 53.65, 96.01°) |
| OKLab | oklab(72.77% -0.0198 0.1213) |
| OKLCH | oklch(72.77% 0.123 99.3) |
| XYZ | xyz(35.2372, 38.8393, 10.7938) |
| Luminance | 0.3884 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 4.91
Brownish Yellow
#C9B003
ΔE00 5.96
Desert
#CCAD60
ΔE00 6.27
Brown Yellow
#B29705
ΔE00 6.28
Puke
#A5A502
ΔE00 6.57
Ocher
#BF9B0C
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAA842 #4254BA
analogous
#BA6C42 #BAA842 #90BA42
triadic
#BAA842 #42BAA8 #A842BA
tetradic
#BAA842 #42BA6C #4254BA #BA4290
square
#BAA842 #42BA6C #4254BA #BA4290
split-complementary
#BAA842 #4290BA #6C42BA
monochromatic
#605622 #8D7F32 #BAA842 #CBBD6E #DBD29B
Accessibility & contrast
On white
2.40
#BAA842 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.77
#BAA842 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAA842
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAA842 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAA842 | 1.00 | 2.40 | 8.77 | 8.77 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A436
Deuteranopia (green-blind)
#BCAA47
Tritanopia (blue-blind)
#C89C92
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #baa842; /* rgb */ color: rgb(186, 168, 66); /* oklch */ color: oklch(72.8% 0.123 99.3);
Tailwind
colors: {
custom: {
50: '#d2c17b',
500: '#baa842',
950: '#000000',
},
}SCSS
$custom: #baa842; $custom-light: #d2c17b; $custom-dark: #000000;
JSON
{
"hex": "#baa842",
"rgb": {
"r": 186,
"g": 168,
"b": 66
},
"hsl": {
"h": 51,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.7277,
"c": 0.12287,
"h": 99.3
},
"luminance": 0.38838
}Semantic roles & 50–950 ramp
primary
#BAA842
secondary
#9099C8
accent
#65D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C