#8F7C17#8F7C17

#8F7C17 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.7% C 0.114 H 97.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8F7C17
RGBrgb(143, 124, 23)
HSLhsl(51, 72%, 33%)
HSVhsv(51, 84%, 56%)
CMYKcmyk(0%, 13.3%, 83.9%, 43.9%)
CIE-LABlab(52.19, -3.18, 52.52)
CIE-LCHlch(52.19, 52.62, 93.47°)
OKLaboklab(58.68% -0.015 0.1131)
OKLCHoklch(58.68% 0.114 97.6)
XYZxyz(18.6910, 20.3178, 3.7477)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F7C17 #172A8F
analogous
#8F4017 #8F7C17 #668F17
triadic
#8F7C17 #178F7C #7C178F
tetradic
#8F7C17 #178F40 #172A8F #8F1766
square
#8F7C17 #178F40 #172A8F #8F1766
split-complementary
#8F7C17 #17668F #40178F
monochromatic
#262106 #5A4E0F #8F7C17 #C4AA1F #E0C740

Accessibility & contrast

On white

4.15
#8F7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8F7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F7C17
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F7C17#FFFFFF#000000##000000
##8F7C171.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8E7F1F
Tritanopia (blue-blind)
#9B726A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8f7c17;
/* rgb */ color: rgb(143, 124, 23);
/* oklch */ color: oklch(58.7% 0.114 97.6);
Tailwind
colors: {
  custom: {
    50: '#b4a15f',
    500: '#8f7c17',
    950: '#000000',
  },
}
SCSS
$custom: #8f7c17;
$custom-light: #b4a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#8f7c17",
  "rgb": {
    "r": 143,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 50.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58684,
    "c": 0.11407,
    "h": 97.6
  },
  "luminance": 0.20317
}

Semantic roles & 50–950 ramp

primary
#8F7C17
secondary
#4155C1
accent
#56EF39
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8F7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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