#8F8A17#8F8A17

#8F8A17 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.126 H 106.9°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8F8A17
RGBrgb(143, 138, 23)
HSLhsl(58, 72%, 33%)
HSVhsv(58, 84%, 56%)
CMYKcmyk(0%, 3.5%, 83.9%, 43.9%)
CIE-LABlab(56.17, -10.86, 55.93)
CIE-LCHlch(56.17, 56.97, 100.99°)
OKLaboklab(61.84% -0.0365 0.1205)
OKLCHoklch(61.84% 0.126 106.9)
XYZxyz(20.5717, 24.0792, 4.3746)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8A17 #171C8F
analogous
#8F4E17 #8F8A17 #588F17
triadic
#8F8A17 #178F8A #8A178F
tetradic
#8F8A17 #178F4E #171C8F #8F1758
square
#8F8A17 #178F4E #171C8F #8F1758
split-complementary
#8F8A17 #17588F #4E178F
monochromatic
#262406 #5A570F #8F8A17 #C4BD1F #E0DA40

Accessibility & contrast

On white

3.61
#8F8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#8F8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8A17
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8A17#FFFFFF#000000##000000
##8F8A171.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#998922
Tritanopia (blue-blind)
#9A8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8f8a17;
/* rgb */ color: rgb(143, 138, 23);
/* oklch */ color: oklch(61.8% 0.126 106.9);
Tailwind
colors: {
  custom: {
    50: '#b4ab61',
    500: '#8f8a17',
    950: '#000000',
  },
}
SCSS
$custom: #8f8a17;
$custom-light: #b4ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8a17",
  "rgb": {
    "r": 143,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 57.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61841,
    "c": 0.12589,
    "h": 106.9
  },
  "luminance": 0.24078
}

Semantic roles & 50–950 ramp

primary
#8F8A17
secondary
#4146C1
accent
#40EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121005
muted
#817F7A

Preview Lab

Preview with #8F8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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