#8E7E20#8E7E20

#8E7E20 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.111 H 99.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8E7E20
RGBrgb(142, 126, 32)
HSLhsl(51, 63%, 34%)
HSVhsv(51, 77%, 56%)
CMYKcmyk(0%, 11.3%, 77.5%, 44.3%)
CIE-LABlab(52.71, -4.42, 49.92)
CIE-LCHlch(52.71, 50.11, 95.06°)
OKLaboklab(59.08% -0.0176 0.1094)
OKLCHoklch(59.08% 0.111 99.1)
XYZxyz(18.8778, 20.7777, 4.3824)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E20 #20308E
analogous
#8E4720 #8E7E20 #678E20
triadic
#8E7E20 #208E7E #7E208E
tetradic
#8E7E20 #208E47 #20308E #8E2067
square
#8E7E20 #208E47 #20308E #8E2067
split-complementary
#8E7E20 #20678E #47208E
monochromatic
#2A2509 #5C5215 #8E7E20 #C0AA2B #D8C451

Accessibility & contrast

On white

4.07
#8E7E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8E7E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7E20
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7E20#FFFFFF#000000##000000
##8E7E201.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0D
Deuteranopia (green-blind)
#8F8026
Tritanopia (blue-blind)
#9A746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e20;
/* rgb */ color: rgb(142, 126, 32);
/* oklch */ color: oklch(59.1% 0.111 99.1);
Tailwind
colors: {
  custom: {
    50: '#b3a363',
    500: '#8e7e20',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e20;
$custom-light: #b3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e20",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 51.273,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5908,
    "c": 0.11083,
    "h": 99.1
  },
  "luminance": 0.20777
}

Semantic roles & 50–950 ramp

primary
#8E7E20
secondary
#4F5FBB
accent
#5AE642
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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