#8E7217#8E7217

#8E7217 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.4% C 0.108 H 90.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8E7217
RGBrgb(142, 114, 23)
HSLhsl(46, 72%, 32%)
HSVhsv(46, 84%, 56%)
CMYKcmyk(0%, 19.7%, 83.8%, 44.3%)
CIE-LABlab(49.31, 2.00, 49.98)
CIE-LCHlch(49.31, 50.02, 87.71°)
OKLaboklab(56.38% -0.0003 0.1076)
OKLCHoklch(56.38% 0.108 90.1)
XYZxyz(17.3284, 17.8484, 3.3428)
Luminance0.1785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7217 #17338E
analogous
#8E3617 #8E7217 #6F8E17
triadic
#8E7217 #178E72 #72178E
tetradic
#8E7217 #178E36 #17338E #8E176F
square
#8E7217 #178E36 #17338E #8E176F
split-complementary
#8E7217 #176F8E #36178E
monochromatic
#251D06 #59480E #8E7217 #C39C20 #E0BA3F

Accessibility & contrast

On white

4.60
#8E7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8E7217 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8E7217
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7217#FFFFFF#000000##FFFFFF
##8E72171.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#87781D
Tritanopia (blue-blind)
#9A6761
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8e7217;
/* rgb */ color: rgb(142, 114, 23);
/* oklch */ color: oklch(56.4% 0.108 90.1);
Tailwind
colors: {
  custom: {
    50: '#b39a5e',
    500: '#8e7217',
    950: '#000000',
  },
}
SCSS
$custom: #8e7217;
$custom-light: #b39a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7217",
  "rgb": {
    "r": 142,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 45.882,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56381,
    "c": 0.10761,
    "h": 90.1
  },
  "luminance": 0.17847
}

Semantic roles & 50–950 ramp

primary
#8E7217
secondary
#405FC0
accent
#64EF39
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7217

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

Preview Lab → · Contrast checker → · Palette generator →

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