#8D8717#8D8717

#8D8717 is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 61.0% C 0.123 H 106.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8D8717
RGBrgb(141, 135, 23)
HSLhsl(57, 72%, 32%)
HSVhsv(57, 84%, 55%)
CMYKcmyk(0%, 4.3%, 83.7%, 44.7%)
CIE-LABlab(55.13, -10.16, 54.97)
CIE-LCHlch(55.13, 55.90, 100.47°)
OKLaboklab(60.97% -0.0345 0.1185)
OKLCHoklch(60.97% 0.123 106.2)
XYZxyz(19.8040, 23.0533, 4.2170)
Luminance0.2305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8717 #171D8D
analogous
#8D4C17 #8D8717 #588D17
triadic
#8D8717 #178D87 #87178D
tetradic
#8D8717 #178D4C #171D8D #8D1758
square
#8D8717 #178D4C #171D8D #8D1758
split-complementary
#8D8717 #17588D #4C178D
monochromatic
#242206 #58550E #8D8717 #C2B920 #E0D73F

Accessibility & contrast

On white

3.74
#8D8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8D8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8717
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8717#FFFFFF#000000##000000
##8D87171.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#968621
Tritanopia (blue-blind)
#987D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8d8717;
/* rgb */ color: rgb(141, 135, 23);
/* oklch */ color: oklch(61.0% 0.123 106.2);
Tailwind
colors: {
  custom: {
    50: '#b2a961',
    500: '#8d8717',
    950: '#000000',
  },
}
SCSS
$custom: #8d8717;
$custom-light: #b2a961;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8717",
  "rgb": {
    "r": 141,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 56.949,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60969,
    "c": 0.1234,
    "h": 106.2
  },
  "luminance": 0.23053
}

Semantic roles & 50–950 ramp

primary
#8D8717
secondary
#4046C0
accent
#42EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8D8717

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

Preview Lab → · Contrast checker → · Palette generator →

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