#8A7F22#8A7F22
#8A7F22 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.111 H 102.4°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F22 |
|---|---|
| RGB | rgb(138, 127, 34) |
| HSL | hsl(54, 60%, 34%) |
| HSV | hsv(54, 75%, 54%) |
| CMYK | cmyk(0%, 8%, 75.4%, 45.9%) |
| CIE-LAB | lab(52.62, -6.73, 48.95) |
| CIE-LCH | lch(52.62, 49.41, 97.83°) |
| OKLab | oklab(58.92% -0.0237 0.108) |
| OKLCH | oklch(58.92% 0.111 102.4) |
| XYZ | xyz(18.3602, 20.6983, 4.5411) |
| Luminance | 0.2070 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.98
Baby Poop
#937C00
ΔE00 4.47
Hazel
#8E7618
ΔE00 4.96
Ugly Brown
#7D7103
ΔE00 5.56
Puke Brown
#947706
ΔE00 6.22
Diarrhea
#9F8303
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F22 #222D8A
analogous
#8A4B22 #8A7F22 #618A22
triadic
#8A7F22 #228A7F #7F228A
tetradic
#8A7F22 #228A4B #222D8A #8A2261
square
#8A7F22 #228A4B #222D8A #8A2261
split-complementary
#8A7F22 #22618A #4B228A
monochromatic
#28250A #595216 #8A7F22 #BBAC2E #D4C752
Accessibility & contrast
On white
4.09
#8A7F22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#8A7F22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F22
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F22 | 1.00 | 4.09 | 5.14 | 5.14 |
| #FFFFFF | 4.09 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7B11
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f22; /* rgb */ color: rgb(138, 127, 34); /* oklch */ color: oklch(58.9% 0.111 102.4);
Tailwind
colors: {
custom: {
50: '#afa364',
500: '#8a7f22',
950: '#000000',
},
}SCSS
$custom: #8a7f22; $custom-light: #afa364; $custom-dark: #000000;
JSON
{
"hex": "#8a7f22",
"rgb": {
"r": 138,
"g": 127,
"b": 34
},
"hsl": {
"h": 53.654,
"s": 60.465,
"l": 33.725
},
"oklch": {
"l": 0.58924,
"c": 0.11052,
"h": 102.4
},
"luminance": 0.20698
}Semantic roles & 50–950 ramp
primary
#8A7F22
secondary
#505BB8
accent
#55E444
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A