#8A7B22#8A7B22
#8A7B22 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.107 H 99.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7B22 |
|---|---|
| RGB | rgb(138, 123, 34) |
| HSL | hsl(51, 60%, 34%) |
| HSV | hsv(51, 75%, 54%) |
| CMYK | cmyk(0%, 10.9%, 75.4%, 45.9%) |
| CIE-LAB | lab(51.48, -4.51, 47.86) |
| CIE-LCH | lch(51.48, 48.07, 95.38°) |
| OKLab | oklab(58.02% -0.0174 0.1056) |
| OKLCH | oklch(58.02% 0.107 99.3) |
| XYZ | xyz(17.8538, 19.6856, 4.3723) |
| Luminance | 0.1968 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 3.27
Baby Poop
#937C00
ΔE00 3.81
Ugly Brown
#7D7103
ΔE00 4.56
Puke Brown
#947706
ΔE00 4.87
Poo
#8F7303
ΔE00 5.02
Olive
#808000
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7B22 #22318A
analogous
#8A4722 #8A7B22 #658A22
triadic
#8A7B22 #228A7B #7B228A
tetradic
#8A7B22 #228A47 #22318A #8A2265
square
#8A7B22 #228A47 #22318A #8A2265
split-complementary
#8A7B22 #22658A #47228A
monochromatic
#28230A #594F16 #8A7B22 #BBA72E #D4C252
Accessibility & contrast
On white
4.25
#8A7B22 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#8A7B22 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7B22
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7B22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7B22 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877813
Deuteranopia (green-blind)
#8B7D28
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8a7b22; /* rgb */ color: rgb(138, 123, 34); /* oklch */ color: oklch(58.0% 0.107 99.3);
Tailwind
colors: {
custom: {
50: '#b0a064',
500: '#8a7b22',
950: '#000000',
},
}SCSS
$custom: #8a7b22; $custom-light: #b0a064; $custom-dark: #000000;
JSON
{
"hex": "#8a7b22",
"rgb": {
"r": 138,
"g": 123,
"b": 34
},
"hsl": {
"h": 51.346,
"s": 60.465,
"l": 33.725
},
"oklch": {
"l": 0.5802,
"c": 0.10705,
"h": 99.3
},
"luminance": 0.19685
}Semantic roles & 50–950 ramp
primary
#8A7B22
secondary
#505FB8
accent
#5BE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A