#8A7F28#8A7F28
#8A7F28 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.106 H 102.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #8A7F28 |
|---|---|
| RGB | rgb(138, 127, 40) |
| HSL | hsl(53, 55%, 35%) |
| HSV | hsv(53, 71%, 54%) |
| CMYK | cmyk(0%, 8%, 71%, 45.9%) |
| CIE-LAB | lab(52.66, -6.42, 46.58) |
| CIE-LCH | lch(52.66, 47.02, 97.84°) |
| OKLab | oklab(58.97% -0.0221 0.1041) |
| OKLCH | oklch(58.97% 0.106 102) |
| XYZ | xyz(18.4544, 20.7360, 5.0374) |
| Luminance | 0.2074 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.47
Baby Poop
#937C00
ΔE00 4.89
Hazel
#8E7618
ΔE00 5.03
Ugly Brown
#7D7103
ΔE00 5.79
Drab
#828344
ΔE00 5.97
Puke Brown
#947706
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A7F28 #28338A
analogous
#8A4E28 #8A7F28 #648A28
triadic
#8A7F28 #288A7F #7F288A
tetradic
#8A7F28 #288A4E #28338A #8A2864
square
#8A7F28 #288A4E #28338A #8A2864
split-complementary
#8A7F28 #28648A #4E288A
monochromatic
#2B280C #5B531A #8A7F28 #B9AB36 #D0C35D
Accessibility & contrast
On white
4.08
#8A7F28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#8A7F28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A7F28
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A7F28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A7F28 | 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)
#8B7B1B
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a7f28; /* rgb */ color: rgb(138, 127, 40); /* oklch */ color: oklch(59.0% 0.106 102.0);
Tailwind
colors: {
custom: {
50: '#afa368',
500: '#8a7f28',
950: '#000000',
},
}SCSS
$custom: #8a7f28; $custom-light: #afa368; $custom-dark: #000000;
JSON
{
"hex": "#8a7f28",
"rgb": {
"r": 138,
"g": 127,
"b": 40
},
"hsl": {
"h": 53.265,
"s": 55.056,
"l": 34.902
},
"oklch": {
"l": 0.5897,
"c": 0.10642,
"h": 102
},
"luminance": 0.20735
}Semantic roles & 50–950 ramp
primary
#8A7F28
secondary
#5963B5
accent
#5ADE49
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A