#8F8817#8F8817

#8F8817 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.4% C 0.124 H 105.7°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8F8817
RGBrgb(143, 136, 23)
HSLhsl(57, 72%, 33%)
HSVhsv(57, 84%, 56%)
CMYKcmyk(0%, 4.9%, 83.9%, 43.9%)
CIE-LABlab(55.59, -9.78, 55.44)
CIE-LCHlch(55.59, 56.29, 100.01°)
OKLaboklab(61.39% -0.0335 0.1194)
OKLCHoklch(61.39% 0.124 105.7)
XYZxyz(20.2874, 23.5106, 4.2798)
Luminance0.2351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8817 #171E8F
analogous
#8F4C17 #8F8817 #5A8F17
triadic
#8F8817 #178F88 #88178F
tetradic
#8F8817 #178F4C #171E8F #8F175A
square
#8F8817 #178F4C #171E8F #8F175A
split-complementary
#8F8817 #175A8F #4C178F
monochromatic
#262406 #5A560F #8F8817 #C4BA1F #E0D740

Accessibility & contrast

On white

3.68
#8F8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#8F8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8817
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8817#FFFFFF#000000##000000
##8F88171.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f8817;
/* rgb */ color: rgb(143, 136, 23);
/* oklch */ color: oklch(61.4% 0.124 105.7);
Tailwind
colors: {
  custom: {
    50: '#b4aa61',
    500: '#8f8817',
    950: '#000000',
  },
}
SCSS
$custom: #8f8817;
$custom-light: #b4aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8817",
  "rgb": {
    "r": 143,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 56.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61385,
    "c": 0.12402,
    "h": 105.7
  },
  "luminance": 0.2351
}

Semantic roles & 50–950 ramp

primary
#8F8817
secondary
#4149C1
accent
#43EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121005
muted
#817F7A

Preview Lab

Preview with #8F8817

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

Preview Lab → · Contrast checker → · Palette generator →

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