#8E7F17#8E7F17

#8E7F17 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.3% C 0.116 H 100.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8E7F17
RGBrgb(142, 127, 23)
HSLhsl(52, 72%, 32%)
HSVhsv(52, 84%, 56%)
CMYKcmyk(0%, 10.6%, 83.8%, 44.3%)
CIE-LABlab(52.94, -5.32, 53.12)
CIE-LCHlch(52.94, 53.39, 95.72°)
OKLaboklab(59.25% -0.021 0.1144)
OKLCHoklch(59.25% 0.116 100.4)
XYZxyz(18.9003, 20.9923, 3.8668)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7F17 #17268E
analogous
#8E4417 #8E7F17 #628E17
triadic
#8E7F17 #178E7F #7F178E
tetradic
#8E7F17 #178E44 #17268E #8E1762
square
#8E7F17 #178E44 #17268E #8E1762
split-complementary
#8E7F17 #17628E #44178E
monochromatic
#252106 #59500E #8E7F17 #C3AE20 #E0CC3F

Accessibility & contrast

On white

4.04
#8E7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#8E7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7F17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7F17#FFFFFF#000000##000000
##8E7F171.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#908120
Tritanopia (blue-blind)
#9A756C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7f17;
/* rgb */ color: rgb(142, 127, 23);
/* oklch */ color: oklch(59.3% 0.116 100.4);
Tailwind
colors: {
  custom: {
    50: '#b3a35f',
    500: '#8e7f17',
    950: '#000000',
  },
}
SCSS
$custom: #8e7f17;
$custom-light: #b3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7f17",
  "rgb": {
    "r": 142,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 52.437,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59252,
    "c": 0.11634,
    "h": 100.4
  },
  "luminance": 0.20991
}

Semantic roles & 50–950 ramp

primary
#8E7F17
secondary
#4051C0
accent
#50EF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#120F05
muted
#817F79

Preview Lab

Preview with #8E7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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