#8D8017#8D8017

#8D8017 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.4% C 0.117 H 101.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8D8017
RGBrgb(141, 128, 23)
HSLhsl(53, 72%, 32%)
HSVhsv(53, 84%, 55%)
CMYKcmyk(0%, 9.2%, 83.7%, 44.7%)
CIE-LABlab(53.13, -6.34, 53.25)
CIE-LCHlch(53.13, 53.62, 96.79°)
OKLaboklab(59.38% -0.0238 0.1148)
OKLCHoklch(59.38% 0.117 101.7)
XYZxyz(18.8593, 21.1638, 3.9021)
Luminance0.2116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8017 #17248D
analogous
#8D4517 #8D8017 #5F8D17
triadic
#8D8017 #178D80 #80178D
tetradic
#8D8017 #178D45 #17248D #8D175F
square
#8D8017 #178D45 #17248D #8D175F
split-complementary
#8D8017 #175F8D #45178D
monochromatic
#242006 #58500E #8D8017 #C2B020 #E0CE3F

Accessibility & contrast

On white

4.01
#8D8017 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#8D8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8017
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8017#FFFFFF#000000##000000
##8D80171.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#918120
Tritanopia (blue-blind)
#99766D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8d8017;
/* rgb */ color: rgb(141, 128, 23);
/* oklch */ color: oklch(59.4% 0.117 101.7);
Tailwind
colors: {
  custom: {
    50: '#b2a45f',
    500: '#8d8017',
    950: '#000000',
  },
}
SCSS
$custom: #8d8017;
$custom-light: #b2a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8017",
  "rgb": {
    "r": 141,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 53.39,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.11721,
    "h": 101.7
  },
  "luminance": 0.21163
}

Semantic roles & 50–950 ramp

primary
#8D8017
secondary
#404EC0
accent
#4DEF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #8D8017

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

Preview Lab → · Contrast checker → · Palette generator →

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