#8D8F17#8D8F17

#8D8F17 is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.8% C 0.131 H 110.7°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8D8F17
RGBrgb(141, 143, 23)
HSLhsl(61, 72%, 33%)
HSVhsv(61, 84%, 56%)
CMYKcmyk(1.4%, 0%, 83.9%, 43.9%)
CIE-LABlab(57.43, -14.44, 56.94)
CIE-LCHlch(57.43, 58.74, 104.23°)
OKLaboklab(62.81% -0.0463 0.1228)
OKLCHoklch(62.81% 0.131 110.7)
XYZxyz(20.9624, 25.3701, 4.6031)
Luminance0.2537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8F17 #19178F
analogous
#8F5517 #8D8F17 #518F17
triadic
#8D8F17 #178D8F #8F178D
tetradic
#8D8F17 #178F55 #19178F #8F1751
square
#8D8F17 #178F55 #19178F #8F1751
split-complementary
#8D8F17 #17518F #55178F
monochromatic
#252606 #595A0F #8D8F17 #C1C41F #DEE040

Accessibility & contrast

On white

3.46
#8D8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8D8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8F17
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8F17#FFFFFF#000000##000000
##8D8F171.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#9C8B23
Tritanopia (blue-blind)
#98857A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8d8f17;
/* rgb */ color: rgb(141, 143, 23);
/* oklch */ color: oklch(62.8% 0.131 110.7);
Tailwind
colors: {
  custom: {
    50: '#b2af62',
    500: '#8d8f17',
    950: '#000000',
  },
}
SCSS
$custom: #8d8f17;
$custom-light: #b2af62;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8f17",
  "rgb": {
    "r": 141,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 61,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.62811,
    "c": 0.13122,
    "h": 110.7
  },
  "luminance": 0.2537
}

Semantic roles & 50–950 ramp

primary
#8D8F17
secondary
#4341C1
accent
#39EF3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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