#8D8917#8D8917

#8D8917 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.4% C 0.125 H 107.4°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8D8917
RGBrgb(141, 137, 23)
HSLhsl(58, 72%, 32%)
HSVhsv(58, 84%, 55%)
CMYKcmyk(0%, 2.8%, 83.7%, 44.7%)
CIE-LABlab(55.70, -11.24, 55.46)
CIE-LCHlch(55.70, 56.59, 101.46°)
OKLaboklab(61.43% -0.0375 0.1196)
OKLCHoklch(61.43% 0.125 107.4)
XYZxyz(20.0857, 23.6166, 4.3109)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8917 #171B8D
analogous
#8D4E17 #8D8917 #568D17
triadic
#8D8917 #178D89 #89178D
tetradic
#8D8917 #178D4E #171B8D #8D1756
square
#8D8917 #178D4E #171B8D #8D1756
split-complementary
#8D8917 #17568D #4E178D
monochromatic
#242306 #58560E #8D8917 #C2BC20 #E0DA3F

Accessibility & contrast

On white

3.67
#8D8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#8D8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8917
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8917#FFFFFF#000000##000000
##8D89171.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#987F75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8d8917;
/* rgb */ color: rgb(141, 137, 23);
/* oklch */ color: oklch(61.4% 0.125 107.4);
Tailwind
colors: {
  custom: {
    50: '#b2ab61',
    500: '#8d8917',
    950: '#000000',
  },
}
SCSS
$custom: #8d8917;
$custom-light: #b2ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8917",
  "rgb": {
    "r": 141,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 57.966,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61427,
    "c": 0.12529,
    "h": 107.4
  },
  "luminance": 0.23616
}

Semantic roles & 50–950 ramp

primary
#8D8917
secondary
#4044C0
accent
#3FEF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8D8917

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

Preview Lab → · Contrast checker → · Palette generator →

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