#8F7F17#8F7F17

#8F7F17 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.116 H 99.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8F7F17
RGBrgb(143, 127, 23)
HSLhsl(52, 72%, 33%)
HSVhsv(52, 84%, 56%)
CMYKcmyk(0%, 11.2%, 83.9%, 43.9%)
CIE-LABlab(53.04, -4.85, 53.25)
CIE-LCHlch(53.04, 53.47, 95.21°)
OKLaboklab(59.35% -0.0197 0.1147)
OKLCHoklch(59.35% 0.116 99.7)
XYZxyz(19.0727, 21.0812, 3.8749)
Luminance0.2108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7F17 #17278F
analogous
#8F4317 #8F7F17 #638F17
triadic
#8F7F17 #178F7F #7F178F
tetradic
#8F7F17 #178F43 #17278F #8F1763
square
#8F7F17 #178F43 #17278F #8F1763
split-complementary
#8F7F17 #17638F #43178F
monochromatic
#262106 #5A500F #8F7F17 #C4AE1F #E0CB40

Accessibility & contrast

On white

4.03
#8F7F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8F7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7F17
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7F17#FFFFFF#000000##000000
##8F7F171.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#918120
Tritanopia (blue-blind)
#9B756C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f7f17;
/* rgb */ color: rgb(143, 127, 23);
/* oklch */ color: oklch(59.4% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#b4a35f',
    500: '#8f7f17',
    950: '#000000',
  },
}
SCSS
$custom: #8f7f17;
$custom-light: #b4a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7f17",
  "rgb": {
    "r": 143,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 52,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59352,
    "c": 0.11633,
    "h": 99.7
  },
  "luminance": 0.2108
}

Semantic roles & 50–950 ramp

primary
#8F7F17
secondary
#4152C1
accent
#51EF39
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#120F05
muted
#817F79

Preview Lab

Preview with #8F7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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