#8E7E17#8E7E17

#8E7E17 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.116 H 99.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8E7E17
RGBrgb(142, 126, 23)
HSLhsl(52, 72%, 32%)
HSVhsv(52, 84%, 56%)
CMYKcmyk(0%, 11.3%, 83.8%, 44.3%)
CIE-LABlab(52.66, -4.76, 52.88)
CIE-LCHlch(52.66, 53.09, 95.15°)
OKLaboklab(59.03% -0.0194 0.1139)
OKLCHoklch(59.03% 0.116 99.7)
XYZxyz(18.7718, 20.7353, 3.8240)
Luminance0.2073 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E17 #17278E
analogous
#8E4317 #8E7E17 #628E17
triadic
#8E7E17 #178E7E #7E178E
tetradic
#8E7E17 #178E43 #17278E #8E1762
square
#8E7E17 #178E43 #17278E #8E1762
split-complementary
#8E7E17 #17628E #43178E
monochromatic
#252106 #594F0E #8E7E17 #C3AD20 #E0CA3F

Accessibility & contrast

On white

4.08
#8E7E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8E7E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7E17
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7E17#FFFFFF#000000##000000
##8E7E171.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#90801F
Tritanopia (blue-blind)
#9A746B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e17;
/* rgb */ color: rgb(142, 126, 23);
/* oklch */ color: oklch(59.0% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#b3a35f',
    500: '#8e7e17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e17;
$custom-light: #b3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e17",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 51.933,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59028,
    "c": 0.11556,
    "h": 99.7
  },
  "luminance": 0.20734
}

Semantic roles & 50–950 ramp

primary
#8E7E17
secondary
#4052C0
accent
#51EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120F05
muted
#817E79

Preview Lab

Preview with #8E7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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