#8E7917#8E7917

#8E7917 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.112 H 95.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8E7917
RGBrgb(142, 121, 23)
HSLhsl(49, 72%, 32%)
HSVhsv(49, 84%, 56%)
CMYKcmyk(0%, 14.8%, 83.8%, 44.3%)
CIE-LABlab(51.25, -1.97, 51.67)
CIE-LCHlch(51.25, 51.70, 92.18°)
OKLaboklab(57.92% -0.0115 0.1113)
OKLCHoklch(57.92% 0.112 95.9)
XYZxyz(18.1484, 19.4884, 3.6162)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7917 #172C8E
analogous
#8E3E17 #8E7917 #678E17
triadic
#8E7917 #178E79 #79178E
tetradic
#8E7917 #178E3E #172C8E #8E1767
square
#8E7917 #178E3E #172C8E #8E1767
split-complementary
#8E7917 #17678E #3E178E
monochromatic
#251F06 #594C0E #8E7917 #C3A620 #E0C43F

Accessibility & contrast

On white

4.29
#8E7917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8E7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7917
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7917#FFFFFF#000000##000000
##8E79171.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#9A6F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e7917;
/* rgb */ color: rgb(142, 121, 23);
/* oklch */ color: oklch(57.9% 0.112 95.9);
Tailwind
colors: {
  custom: {
    50: '#b39f5f',
    500: '#8e7917',
    950: '#000000',
  },
}
SCSS
$custom: #8e7917;
$custom-light: #b39f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7917",
  "rgb": {
    "r": 142,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 49.412,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.11187,
    "h": 95.9
  },
  "luminance": 0.19487
}

Semantic roles & 50–950 ramp

primary
#8E7917
secondary
#4057C0
accent
#59EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7917

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

Preview Lab → · Contrast checker → · Palette generator →

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