#8E7B17#8E7B17

#8E7B17 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.4% C 0.113 H 97.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E7B17
RGBrgb(142, 123, 23)
HSLhsl(50, 72%, 32%)
HSVhsv(50, 84%, 56%)
CMYKcmyk(0%, 13.4%, 83.8%, 44.3%)
CIE-LABlab(51.81, -3.09, 52.15)
CIE-LCHlch(51.81, 52.24, 93.39°)
OKLaboklab(58.36% -0.0147 0.1123)
OKLCHoklch(58.36% 0.113 97.5)
XYZxyz(18.3939, 19.9796, 3.6980)
Luminance0.1998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7B17 #172A8E
analogous
#8E3F17 #8E7B17 #668E17
triadic
#8E7B17 #178E7B #7B178E
tetradic
#8E7B17 #178E3F #172A8E #8E1766
square
#8E7B17 #178E3F #172A8E #8E1766
split-complementary
#8E7B17 #17668E #3F178E
monochromatic
#252006 #594D0E #8E7B17 #C3A920 #E0C63F

Accessibility & contrast

On white

4.20
#8E7B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8E7B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7B17
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7B17#FFFFFF#000000##000000
##8E7B171.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#9A7169
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8e7b17;
/* rgb */ color: rgb(142, 123, 23);
/* oklch */ color: oklch(58.4% 0.113 97.5);
Tailwind
colors: {
  custom: {
    50: '#b3a05f',
    500: '#8e7b17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7b17;
$custom-light: #b3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7b17",
  "rgb": {
    "r": 142,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 50.42,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58359,
    "c": 0.11329,
    "h": 97.5
  },
  "luminance": 0.19979
}

Semantic roles & 50–950 ramp

primary
#8E7B17
secondary
#4055C0
accent
#56EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7B17

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

Preview Lab → · Contrast checker → · Palette generator →

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