#8F8717#8F8717

#8F8717 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.2% C 0.123 H 105.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8F8717
RGBrgb(143, 135, 23)
HSLhsl(56, 72%, 33%)
HSVhsv(56, 84%, 56%)
CMYKcmyk(0%, 5.6%, 83.9%, 43.9%)
CIE-LABlab(55.31, -9.24, 55.19)
CIE-LCHlch(55.31, 55.96, 99.51°)
OKLaboklab(61.16% -0.032 0.1189)
OKLCHoklch(61.16% 0.123 105.1)
XYZxyz(20.1472, 23.2303, 4.2331)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8717 #171F8F
analogous
#8F4B17 #8F8717 #5B8F17
triadic
#8F8717 #178F87 #87178F
tetradic
#8F8717 #178F4B #171F8F #8F175B
square
#8F8717 #178F4B #171F8F #8F175B
split-complementary
#8F8717 #175B8F #4B178F
monochromatic
#262306 #5A550F #8F8717 #C4B91F #E0D640

Accessibility & contrast

On white

3.72
#8F8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#8F8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8717
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8717#FFFFFF#000000##000000
##8F87171.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#978621
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8f8717;
/* rgb */ color: rgb(143, 135, 23);
/* oklch */ color: oklch(61.2% 0.123 105.1);
Tailwind
colors: {
  custom: {
    50: '#b4a961',
    500: '#8f8717',
    950: '#000000',
  },
}
SCSS
$custom: #8f8717;
$custom-light: #b4a961;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8717",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 56,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61157,
    "c": 0.12311,
    "h": 105.1
  },
  "luminance": 0.23229
}

Semantic roles & 50–950 ramp

primary
#8F8717
secondary
#414AC1
accent
#45EF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #8F8717

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

Preview Lab → · Contrast checker → · Palette generator →

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