#8A7F27#8A7F27
#8A7F27 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.107 H 102.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F27 |
|---|---|
| RGB | rgb(138, 127, 39) |
| HSL | hsl(53, 56%, 35%) |
| HSV | hsv(53, 72%, 54%) |
| CMYK | cmyk(0%, 8%, 71.7%, 45.9%) |
| CIE-LAB | lab(52.65, -6.47, 46.99) |
| CIE-LCH | lch(52.65, 47.43, 97.84°) |
| OKLab | oklab(58.96% -0.0224 0.1048) |
| OKLCH | oklch(58.96% 0.107 102.1) |
| XYZ | xyz(18.4376, 20.7293, 4.9490) |
| Luminance | 0.2073 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.38
Baby Poop
#937C00
ΔE00 4.81
Hazel
#8E7618
ΔE00 5.01
Ugly Brown
#7D7103
ΔE00 5.74
Drab
#828344
ΔE00 6.07
Puke Brown
#947706
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F27 #27328A
analogous
#8A4D27 #8A7F27 #648A27
triadic
#8A7F27 #278A7F #7F278A
tetradic
#8A7F27 #278A4D #27328A #8A2764
square
#8A7F27 #278A4D #27328A #8A2764
split-complementary
#8A7F27 #27648A #4D278A
monochromatic
#2B270C #5A531A #8A7F27 #BAAB34 #D1C45B
Accessibility & contrast
On white
4.08
#8A7F27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#8A7F27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F27
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F27 | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B1A
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f27; /* rgb */ color: rgb(138, 127, 39); /* oklch */ color: oklch(59.0% 0.107 102.1);
Tailwind
colors: {
custom: {
50: '#afa367',
500: '#8a7f27',
950: '#000000',
},
}SCSS
$custom: #8a7f27; $custom-light: #afa367; $custom-dark: #000000;
JSON
{
"hex": "#8a7f27",
"rgb": {
"r": 138,
"g": 127,
"b": 39
},
"hsl": {
"h": 53.333,
"s": 55.932,
"l": 34.706
},
"oklch": {
"l": 0.58962,
"c": 0.10714,
"h": 102.1
},
"luminance": 0.20729
}Semantic roles & 50–950 ramp
primary
#8A7F27
secondary
#5762B6
accent
#59DF49
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A