#BAAF42#BAAF42
#BAAF42 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.3% C 0.129 H 103.5°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).
Color values
| HEX | #BAAF42 |
|---|---|
| RGB | rgb(186, 175, 66) |
| HSL | hsl(55, 48%, 49%) |
| HSV | hsv(55, 65%, 73%) |
| CMYK | cmyk(0%, 5.9%, 64.5%, 27.1%) |
| CIE-LAB | lab(70.52, -9.29, 55.36) |
| CIE-LCH | lch(70.52, 56.14, 99.52°) |
| OKLab | oklab(74.27% -0.0302 0.1255) |
| OKLCH | oklch(74.27% 0.129 103.5) |
| XYZ | xyz(36.5644, 41.4938, 11.2363) |
| Luminance | 0.4149 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 4.75
Olive Yellow
#C2B709
ΔE00 5.11
Puke
#A5A502
ΔE00 5.64
Darkkhaki
#BDB76B
ΔE00 5.71
Vomit
#A2A415
ΔE00 5.78
Brownish Yellow
#C9B003
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BAAF42 #424DBA
analogous
#BA7342 #BAAF42 #89BA42
triadic
#BAAF42 #42BAAF #AF42BA
tetradic
#BAAF42 #42BA73 #424DBA #BA4289
square
#BAAF42 #42BA73 #424DBA #BA4289
split-complementary
#BAAF42 #4289BA #7342BA
monochromatic
#605A22 #8D8532 #BAAF42 #CBC36E #DBD69B
Accessibility & contrast
On white
2.26
#BAAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.30
#BAAF42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BAAF42
9.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BAAF42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BAAF42 | 1.00 | 2.26 | 9.30 | 9.30 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA934
Deuteranopia (green-blind)
#C2AF48
Tritanopia (blue-blind)
#C7A398
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #baaf42; /* rgb */ color: rgb(186, 175, 66); /* oklch */ color: oklch(74.3% 0.129 103.5);
Tailwind
colors: {
custom: {
50: '#d2c67c',
500: '#baaf42',
950: '#000000',
},
}SCSS
$custom: #baaf42; $custom-light: #d2c67c; $custom-dark: #000000;
JSON
{
"hex": "#baaf42",
"rgb": {
"r": 186,
"g": 175,
"b": 66
},
"hsl": {
"h": 54.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.74268,
"c": 0.1291,
"h": 103.5
},
"luminance": 0.41492
}Semantic roles & 50–950 ramp
primary
#BAAF42
secondary
#9095C8
accent
#5DD751
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C