#8E7D17#8E7D17

#8E7D17 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.115 H 98.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8E7D17
RGBrgb(142, 125, 23)
HSLhsl(51, 72%, 32%)
HSVhsv(51, 84%, 56%)
CMYKcmyk(0%, 12%, 83.8%, 44.3%)
CIE-LABlab(52.38, -4.21, 52.64)
CIE-LCHlch(52.38, 52.81, 94.57°)
OKLaboklab(58.8% -0.0178 0.1134)
OKLCHoklch(58.8% 0.115 98.9)
XYZxyz(18.6446, 20.4808, 3.7816)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D17 #17288E
analogous
#8E4217 #8E7D17 #638E17
triadic
#8E7D17 #178E7D #7D178E
tetradic
#8E7D17 #178E42 #17288E #8E1763
square
#8E7D17 #178E42 #17288E #8E1763
split-complementary
#8E7D17 #17638E #42178E
monochromatic
#252006 #594F0E #8E7D17 #C3AB20 #E0C93F

Accessibility & contrast

On white

4.12
#8E7D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8E7D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7D17
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7D17#FFFFFF#000000##000000
##8E7D171.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8F801F
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d17;
/* rgb */ color: rgb(142, 125, 23);
/* oklch */ color: oklch(58.8% 0.115 98.9);
Tailwind
colors: {
  custom: {
    50: '#b3a25f',
    500: '#8e7d17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d17;
$custom-light: #b3a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d17",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 51.429,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58805,
    "c": 0.11478,
    "h": 98.9
  },
  "luminance": 0.2048
}

Semantic roles & 50–950 ramp

primary
#8E7D17
secondary
#4053C0
accent
#53EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120F05
muted
#817E79

Preview Lab

Preview with #8E7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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