#8E7D22#8E7D22

#8E7D22 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.9% C 0.109 H 98.2°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8E7D22
RGBrgb(142, 125, 34)
HSLhsl(51, 61%, 35%)
HSVhsv(51, 76%, 56%)
CMYKcmyk(0%, 12%, 76.1%, 44.3%)
CIE-LABlab(52.44, -3.77, 48.91)
CIE-LCHlch(52.44, 49.05, 94.41°)
OKLaboklab(58.87% -0.0155 0.1077)
OKLCHoklch(58.87% 0.109 98.2)
XYZxyz(18.7786, 20.5345, 4.4875)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D22 #22338E
analogous
#8E4722 #8E7D22 #698E22
triadic
#8E7D22 #228E7D #7D228E
tetradic
#8E7D22 #228E47 #22338E #8E2269
square
#8E7D22 #228E47 #22338E #8E2269
split-complementary
#8E7D22 #22698E #47228E
monochromatic
#2B260A #5D5216 #8E7D22 #BFA82E #D6C254

Accessibility & contrast

On white

4.11
#8E7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8E7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7D22
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7D22#FFFFFF#000000##000000
##8E7D221.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A12
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d22;
/* rgb */ color: rgb(142, 125, 34);
/* oklch */ color: oklch(58.9% 0.109 98.2);
Tailwind
colors: {
  custom: {
    50: '#b3a264',
    500: '#8e7d22',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d22;
$custom-light: #b3a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d22",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 50.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.58871,
    "c": 0.10881,
    "h": 98.2
  },
  "luminance": 0.20534
}

Semantic roles & 50–950 ramp

primary
#8E7D22
secondary
#5262BA
accent
#5DE443
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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