#A7871F#A7871F
#A7871F is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.6% C 0.120 H 90.3°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A7871F |
|---|---|
| RGB | rgb(167, 135, 31) |
| HSL | hsl(46, 69%, 39%) |
| HSV | hsv(46, 81%, 65%) |
| CMYK | cmyk(0%, 19.2%, 81.4%, 34.5%) |
| CIE-LAB | lab(57.70, 2.05, 55.75) |
| CIE-LCH | lch(57.70, 55.78, 87.89°) |
| OKLab | oklab(63.61% -0.0007 0.1205) |
| OKLCH | oklch(63.61% 0.12 90.3) |
| XYZ | xyz(24.8492, 25.6440, 4.9370) |
| Luminance | 0.2564 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dark Mustard
#A88905
ΔE00 2.04
Yellowy Brown
#AE8B0C
ΔE00 2.37
Diarrhea
#9F8303
ΔE00 2.64
Baby Shit Brown
#AD900D
ΔE00 3.73
Baby Poo
#AB9004
ΔE00 4.10
Yellowish Brown
#9B7A01
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7871F #1F3FA7
analogous
#A7431F #A7871F #83A71F
triadic
#A7871F #1FA787 #871FA7
tetradic
#A7871F #1FA743 #1F3FA7 #A71F83
square
#A7871F #1FA743 #1F3FA7 #A71F83
split-complementary
#A7871F #1F83A7 #431FA7
monochromatic
#40340C #735D15 #A7871F #D8AF2B #E1C35F
Accessibility & contrast
On white
3.43
#A7871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#A7871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A7871F
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7871F | 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)
#978504
Deuteranopia (green-blind)
#9F8E26
Tritanopia (blue-blind)
#B57B74
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a7871f; /* rgb */ color: rgb(167, 135, 31); /* oklch */ color: oklch(63.6% 0.120 90.3);
Tailwind
colors: {
custom: {
50: '#c6a965',
500: '#a7871f',
950: '#000000',
},
}SCSS
$custom: #a7871f; $custom-light: #c6a965; $custom-dark: #000000;
JSON
{
"hex": "#a7871f",
"rgb": {
"r": 167,
"g": 135,
"b": 31
},
"hsl": {
"h": 45.882,
"s": 68.687,
"l": 38.824
},
"oklch": {
"l": 0.63613,
"c": 0.12047,
"h": 90.3
},
"luminance": 0.25642
}Semantic roles & 50–950 ramp
primary
#A7871F
secondary
#5C75C6
accent
#66EC3C
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#140F06
muted
#827F7A