#8E7A17#8E7A17

#8E7A17 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.113 H 96.7°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8E7A17
RGBrgb(142, 122, 23)
HSLhsl(50, 72%, 32%)
HSVhsv(50, 84%, 56%)
CMYKcmyk(0%, 14.1%, 83.8%, 44.3%)
CIE-LABlab(51.53, -2.53, 51.91)
CIE-LCHlch(51.53, 51.97, 92.79°)
OKLaboklab(58.14% -0.0131 0.1118)
OKLCHoklch(58.14% 0.113 96.7)
XYZxyz(18.2705, 19.7327, 3.6569)
Luminance0.1973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7A17 #172B8E
analogous
#8E3F17 #8E7A17 #678E17
triadic
#8E7A17 #178E7A #7A178E
tetradic
#8E7A17 #178E3F #172B8E #8E1767
square
#8E7A17 #178E3F #172B8E #8E1767
split-complementary
#8E7A17 #17678E #3F178E
monochromatic
#251F06 #594D0E #8E7A17 #C3A720 #E0C53F

Accessibility & contrast

On white

4.25
#8E7A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8E7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7A17
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7A17#FFFFFF#000000##000000
##8E7A171.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e7a17;
/* rgb */ color: rgb(142, 122, 23);
/* oklch */ color: oklch(58.1% 0.113 96.7);
Tailwind
colors: {
  custom: {
    50: '#b3a05f',
    500: '#8e7a17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7a17;
$custom-light: #b3a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7a17",
  "rgb": {
    "r": 142,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 49.916,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58137,
    "c": 0.11257,
    "h": 96.7
  },
  "luminance": 0.19732
}

Semantic roles & 50–950 ramp

primary
#8E7A17
secondary
#4056C0
accent
#58EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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