#8F7A17#8F7A17

#8F7A17 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 58.2% C 0.113 H 96.0°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8F7A17
RGBrgb(143, 122, 23)
HSLhsl(50, 72%, 33%)
HSVhsv(50, 84%, 56%)
CMYKcmyk(0%, 14.7%, 83.9%, 43.9%)
CIE-LABlab(51.63, -2.06, 52.04)
CIE-LCHlch(51.63, 52.08, 92.27°)
OKLaboklab(58.24% -0.0118 0.112)
OKLCHoklch(58.24% 0.113 96)
XYZxyz(18.4429, 19.8216, 3.6650)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7A17 #172C8F
analogous
#8F3E17 #8F7A17 #688F17
triadic
#8F7A17 #178F7A #7A178F
tetradic
#8F7A17 #178F3E #172C8F #8F1768
square
#8F7A17 #178F3E #172C8F #8F1768
split-complementary
#8F7A17 #17688F #3E178F
monochromatic
#262006 #5A4D0F #8F7A17 #C4A71F #E0C440

Accessibility & contrast

On white

4.23
#8F7A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#8F7A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7A17
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7A17#FFFFFF#000000##000000
##8F7A171.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#9B7068
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8f7a17;
/* rgb */ color: rgb(143, 122, 23);
/* oklch */ color: oklch(58.2% 0.113 96.0);
Tailwind
colors: {
  custom: {
    50: '#b4a05f',
    500: '#8f7a17',
    950: '#000000',
  },
}
SCSS
$custom: #8f7a17;
$custom-light: #b4a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7a17",
  "rgb": {
    "r": 143,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 49.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5824,
    "c": 0.11265,
    "h": 96
  },
  "luminance": 0.19821
}

Semantic roles & 50–950 ramp

primary
#8F7A17
secondary
#4157C1
accent
#59EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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