#8E7216#8E7216

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

Color values

HEX#8E7216
RGBrgb(142, 114, 22)
HSLhsl(46, 73%, 32%)
HSVhsv(46, 85%, 56%)
CMYKcmyk(0%, 19.7%, 84.5%, 44.3%)
CIE-LABlab(49.31, 1.97, 50.30)
CIE-LCHlch(49.31, 50.34, 87.76°)
OKLaboklab(56.38% -0.0004 0.1081)
OKLCHoklch(56.38% 0.108 90.2)
XYZxyz(17.3185, 17.8445, 3.2911)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7216 #16328E
analogous
#8E3616 #8E7216 #6E8E16
triadic
#8E7216 #168E72 #72168E
tetradic
#8E7216 #168E36 #16328E #8E166E
square
#8E7216 #168E36 #16328E #8E166E
split-complementary
#8E7216 #166E8E #36168E
monochromatic
#241D06 #59470E #8E7216 #C39D1E #E1BB3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7216#FFFFFF#000000##FFFFFF
##8E72161.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)
#87781C
Tritanopia (blue-blind)
#9A6761
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8e7216;
/* rgb */ color: rgb(142, 114, 22);
/* oklch */ color: oklch(56.4% 0.108 90.2);
Tailwind
colors: {
  custom: {
    50: '#b39a5d',
    500: '#8e7216',
    950: '#000000',
  },
}
SCSS
$custom: #8e7216;
$custom-light: #b39a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7216",
  "rgb": {
    "r": 142,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 46,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56376,
    "c": 0.10808,
    "h": 90.2
  },
  "luminance": 0.17843
}

Semantic roles & 50–950 ramp

primary
#8E7216
secondary
#3F5DC1
accent
#63F038
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7216

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

Preview Lab → · Contrast checker → · Palette generator →

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