#8F8917#8F8917

#8F8917 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.125 H 106.3°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8F8917
RGBrgb(143, 137, 23)
HSLhsl(57, 72%, 33%)
HSVhsv(57, 84%, 56%)
CMYKcmyk(0%, 4.2%, 83.9%, 43.9%)
CIE-LABlab(55.88, -10.32, 55.68)
CIE-LCHlch(55.88, 56.63, 100.50°)
OKLaboklab(61.61% -0.035 0.12)
OKLCHoklch(61.61% 0.125 106.3)
XYZxyz(20.4289, 23.7936, 4.3270)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8917 #171D8F
analogous
#8F4D17 #8F8917 #598F17
triadic
#8F8917 #178F89 #89178F
tetradic
#8F8917 #178F4D #171D8F #8F1759
square
#8F8917 #178F4D #171D8F #8F1759
split-complementary
#8F8917 #17598F #4D178F
monochromatic
#262406 #5A560F #8F8917 #C4BC1F #E0D840

Accessibility & contrast

On white

3.65
#8F8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8F8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8917
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8917#FFFFFF#000000##000000
##8F89171.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988822
Tritanopia (blue-blind)
#9A7F75
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8f8917;
/* rgb */ color: rgb(143, 137, 23);
/* oklch */ color: oklch(61.6% 0.125 106.3);
Tailwind
colors: {
  custom: {
    50: '#b4ab61',
    500: '#8f8917',
    950: '#000000',
  },
}
SCSS
$custom: #8f8917;
$custom-light: #b4ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8917",
  "rgb": {
    "r": 143,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 57,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61613,
    "c": 0.12495,
    "h": 106.3
  },
  "luminance": 0.23793
}

Semantic roles & 50–950 ramp

primary
#8F8917
secondary
#4147C1
accent
#42EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121005
muted
#817F7A

Preview Lab

Preview with #8F8917

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

Preview Lab → · Contrast checker → · Palette generator →

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