#A7871E#A7871E
#A7871E is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.6% C 0.121 H 90.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A7871E |
|---|---|
| RGB | rgb(167, 135, 30) |
| HSL | hsl(46, 70%, 39%) |
| HSV | hsv(46, 82%, 65%) |
| CMYK | cmyk(0%, 19.2%, 82%, 34.5%) |
| CIE-LAB | lab(57.69, 2.02, 56.07) |
| CIE-LCH | lch(57.69, 56.11, 87.94°) |
| OKLab | oklab(63.61% -0.0009 0.121) |
| OKLCH | oklch(63.61% 0.121 90.4) |
| XYZ | xyz(24.8362, 25.6388, 4.8687) |
| Luminance | 0.2564 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Mustard
#A88905
ΔE00 1.95
Yellowy Brown
#AE8B0C
ΔE00 2.30
Diarrhea
#9F8303
ΔE00 2.58
Baby Shit Brown
#AD900D
ΔE00 3.67
Baby Poo
#AB9004
ΔE00 4.04
Yellowish Brown
#9B7A01
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7871E #1E3EA7
analogous
#A7421E #A7871E #82A71E
triadic
#A7871E #1EA787 #871EA7
tetradic
#A7871E #1EA742 #1E3EA7 #A71E82
square
#A7871E #1EA742 #1E3EA7 #A71E82
split-complementary
#A7871E #1E82A7 #421EA7
monochromatic
#3F330B #735D15 #A7871E #D9B02A #E2C35D
Accessibility & contrast
On white
3.43
#A7871E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#A7871E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A7871E
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7871E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7871E | 1.00 | 3.43 | 6.13 | 6.13 |
| #FFFFFF | 3.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#978502
Deuteranopia (green-blind)
#9F8E25
Tritanopia (blue-blind)
#B57B74
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a7871e; /* rgb */ color: rgb(167, 135, 30); /* oklch */ color: oklch(63.6% 0.121 90.4);
Tailwind
colors: {
custom: {
50: '#c6a964',
500: '#a7871e',
950: '#000000',
},
}SCSS
$custom: #a7871e; $custom-light: #c6a964; $custom-dark: #000000;
JSON
{
"hex": "#a7871e",
"rgb": {
"r": 167,
"g": 135,
"b": 30
},
"hsl": {
"h": 45.985,
"s": 69.543,
"l": 38.627
},
"oklch": {
"l": 0.63608,
"c": 0.12095,
"h": 90.4
},
"luminance": 0.25637
}Semantic roles & 50–950 ramp
primary
#A7871E
secondary
#5B74C6
accent
#65EC3B
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A