#8E7C17#8E7C17

#8E7C17 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.6% C 0.114 H 98.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8E7C17
RGBrgb(142, 124, 23)
HSLhsl(51, 72%, 32%)
HSVhsv(51, 84%, 56%)
CMYKcmyk(0%, 12.7%, 83.8%, 44.3%)
CIE-LABlab(52.09, -3.65, 52.39)
CIE-LCHlch(52.09, 52.52, 93.98°)
OKLaboklab(58.58% -0.0163 0.1129)
OKLCHoklch(58.58% 0.114 98.2)
XYZxyz(18.5186, 20.2289, 3.7396)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7C17 #17298E
analogous
#8E4017 #8E7C17 #658E17
triadic
#8E7C17 #178E7C #7C178E
tetradic
#8E7C17 #178E40 #17298E #8E1765
square
#8E7C17 #178E40 #17298E #8E1765
split-complementary
#8E7C17 #17658E #40178E
monochromatic
#252006 #594E0E #8E7C17 #C3AA20 #E0C83F

Accessibility & contrast

On white

4.16
#8E7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8E7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7C17
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7C17#FFFFFF#000000##000000
##8E7C171.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8E7F1F
Tritanopia (blue-blind)
#9A726A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e7c17;
/* rgb */ color: rgb(142, 124, 23);
/* oklch */ color: oklch(58.6% 0.114 98.2);
Tailwind
colors: {
  custom: {
    50: '#b3a15f',
    500: '#8e7c17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7c17;
$custom-light: #b3a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7c17",
  "rgb": {
    "r": 142,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 50.924,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.11403,
    "h": 98.2
  },
  "luminance": 0.20228
}

Semantic roles & 50–950 ramp

primary
#8E7C17
secondary
#4054C0
accent
#54EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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