#8E7817#8E7817

#8E7817 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.7% C 0.111 H 95.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8E7817
RGBrgb(142, 120, 23)
HSLhsl(49, 72%, 32%)
HSVhsv(49, 84%, 56%)
CMYKcmyk(0%, 15.5%, 83.8%, 44.3%)
CIE-LABlab(50.97, -1.41, 51.43)
CIE-LCHlch(50.97, 51.44, 91.57°)
OKLaboklab(57.69% -0.0099 0.1108)
OKLCHoklch(57.69% 0.111 95.1)
XYZxyz(18.0275, 19.2466, 3.5759)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7817 #172D8E
analogous
#8E3D17 #8E7817 #688E17
triadic
#8E7817 #178E78 #78178E
tetradic
#8E7817 #178E3D #172D8E #8E1768
square
#8E7817 #178E3D #172D8E #8E1768
split-complementary
#8E7817 #17688E #3D178E
monochromatic
#251F06 #594B0E #8E7817 #C3A520 #E0C23F

Accessibility & contrast

On white

4.33
#8E7817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8E7817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7817
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7817#FFFFFF#000000##000000
##8E78171.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#8B7C1E
Tritanopia (blue-blind)
#9A6E66
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e7817;
/* rgb */ color: rgb(142, 120, 23);
/* oklch */ color: oklch(57.7% 0.111 95.1);
Tailwind
colors: {
  custom: {
    50: '#b39e5e',
    500: '#8e7817',
    950: '#000000',
  },
}
SCSS
$custom: #8e7817;
$custom-light: #b39e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7817",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 48.908,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57694,
    "c": 0.11119,
    "h": 95.1
  },
  "luminance": 0.19246
}

Semantic roles & 50–950 ramp

primary
#8E7817
secondary
#4058C0
accent
#5BEF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7817

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

Preview Lab → · Contrast checker → · Palette generator →

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