#8E7E22#8E7E22

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

Color values

HEX#8E7E22
RGBrgb(142, 126, 34)
HSLhsl(51, 61%, 35%)
HSVhsv(51, 76%, 56%)
CMYKcmyk(0%, 11.3%, 76.1%, 44.3%)
CIE-LABlab(52.72, -4.33, 49.18)
CIE-LCHlch(52.72, 49.37, 95.03°)
OKLaboklab(59.09% -0.0171 0.1083)
OKLCHoklch(59.09% 0.11 99)
XYZxyz(18.9058, 20.7889, 4.5299)
Luminance0.2079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E22 #22328E
analogous
#8E4822 #8E7E22 #688E22
triadic
#8E7E22 #228E7E #7E228E
tetradic
#8E7E22 #228E48 #22328E #8E2268
square
#8E7E22 #228E48 #22328E #8E2268
split-complementary
#8E7E22 #22688E #48228E
monochromatic
#2B260A #5D5216 #8E7E22 #BFAA2E #D6C354

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7E22#FFFFFF#000000##000000
##8E7E221.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)
#8B7B11
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#99746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e22;
/* rgb */ color: rgb(142, 126, 34);
/* oklch */ color: oklch(59.1% 0.110 99.0);
Tailwind
colors: {
  custom: {
    50: '#b3a364',
    500: '#8e7e22',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e22;
$custom-light: #b3a364;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e22",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 51.111,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59094,
    "c": 0.10961,
    "h": 99
  },
  "luminance": 0.20788
}

Semantic roles & 50–950 ramp

primary
#8E7E22
secondary
#5261BA
accent
#5BE443
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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