#8F8317#8F8317

#8F8317 is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.3% C 0.120 H 102.5°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8F8317
RGBrgb(143, 131, 23)
HSLhsl(54, 72%, 33%)
HSVhsv(54, 84%, 56%)
CMYKcmyk(0%, 8.4%, 83.9%, 43.9%)
CIE-LABlab(54.17, -7.06, 54.22)
CIE-LCHlch(54.17, 54.68, 97.42°)
OKLaboklab(60.25% -0.0259 0.1168)
OKLCHoklch(60.25% 0.12 102.5)
XYZxyz(19.5996, 22.1350, 4.0505)
Luminance0.2213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8317 #17238F
analogous
#8F4717 #8F8317 #5F8F17
triadic
#8F8317 #178F83 #83178F
tetradic
#8F8317 #178F47 #17238F #8F175F
square
#8F8317 #178F47 #17238F #8F175F
split-complementary
#8F8317 #175F8F #47178F
monochromatic
#262206 #5A530F #8F8317 #C4B31F #E0D040

Accessibility & contrast

On white

3.87
#8F8317 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#8F8317 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8317
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8317#FFFFFF#000000##000000
##8F83171.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#948420
Tritanopia (blue-blind)
#9B7970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8f8317;
/* rgb */ color: rgb(143, 131, 23);
/* oklch */ color: oklch(60.3% 0.120 102.5);
Tailwind
colors: {
  custom: {
    50: '#b4a660',
    500: '#8f8317',
    950: '#000000',
  },
}
SCSS
$custom: #8f8317;
$custom-light: #b4a660;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8317",
  "rgb": {
    "r": 143,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 54,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60251,
    "c": 0.11961,
    "h": 102.5
  },
  "luminance": 0.22134
}

Semantic roles & 50–950 ramp

primary
#8F8317
secondary
#414EC1
accent
#4BEF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F05
muted
#817F7A

Preview Lab

Preview with #8F8317

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

Preview Lab → · Contrast checker → · Palette generator →

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