#8E7F20#8E7F20

#8E7F20 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.112 H 99.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8E7F20
RGBrgb(142, 127, 32)
HSLhsl(52, 63%, 34%)
HSVhsv(52, 77%, 56%)
CMYKcmyk(0%, 10.6%, 77.5%, 44.3%)
CIE-LABlab(52.99, -4.97, 50.18)
CIE-LCHlch(52.99, 50.43, 95.66°)
OKLaboklab(59.3% -0.0191 0.11)
OKLCHoklch(59.3% 0.112 99.9)
XYZxyz(19.0063, 21.0347, 4.4252)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F20 #202F8E
analogous
#8E4820 #8E7F20 #668E20
triadic
#8E7F20 #208E7F #7F208E
tetradic
#8E7F20 #208E48 #202F8E #8E2066
square
#8E7F20 #208E48 #202F8E #8E2066
split-complementary
#8E7F20 #20668E #48208E
monochromatic
#2A2609 #5C5215 #8E7F20 #C0AC2B #D8C551

Accessibility & contrast

On white

4.03
#8E7F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8E7F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F20
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F20#FFFFFF#000000##000000
##8E7F201.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B0D
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#99756D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7f20;
/* rgb */ color: rgb(142, 127, 32);
/* oklch */ color: oklch(59.3% 0.112 99.9);
Tailwind
colors: {
  custom: {
    50: '#b3a363',
    500: '#8e7f20',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f20;
$custom-light: #b3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f20",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 51.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59304,
    "c": 0.11164,
    "h": 99.9
  },
  "luminance": 0.21034
}

Semantic roles & 50–950 ramp

primary
#8E7F20
secondary
#4F5EBB
accent
#58E642
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8E7F20

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8E7F20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva