#8F871F#8F871F

#8F871F is a mid, moderate yellow. Relative luminance 0.233; OKLCH L 61.2% C 0.119 H 104.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8F871F
RGBrgb(143, 135, 31)
HSLhsl(56, 64%, 34%)
HSVhsv(56, 78%, 56%)
CMYKcmyk(0%, 5.6%, 78.3%, 43.9%)
CIE-LABlab(55.35, -8.95, 52.75)
CIE-LCHlch(55.35, 53.50, 99.63°)
OKLaboklab(61.2% -0.0305 0.1152)
OKLCHoklch(61.2% 0.119 104.8)
XYZxyz(20.2399, 23.2673, 4.7210)
Luminance0.2327 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F871F #1F278F
analogous
#8F4F1F #8F871F #5F8F1F
triadic
#8F871F #1F8F87 #871F8F
tetradic
#8F871F #1F8F4F #1F278F #8F1F5F
square
#8F871F #1F8F4F #1F278F #8F1F5F
split-complementary
#8F871F #1F5F8F #4F1F8F
monochromatic
#2A2809 #5D5814 #8F871F #C1B62A #D9CF4F

Accessibility & contrast

On white

3.71
#8F871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F871F#FFFFFF#000000##000000
##8F871F1.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#968727
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8f871f;
/* rgb */ color: rgb(143, 135, 31);
/* oklch */ color: oklch(61.2% 0.119 104.8);
Tailwind
colors: {
  custom: {
    50: '#b3a964',
    500: '#8f871f',
    950: '#000000',
  },
}
SCSS
$custom: #8f871f;
$custom-light: #b3a964;
$custom-dark: #000000;
JSON
{
  "hex": "#8f871f",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 55.714,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.612,
    "c": 0.11919,
    "h": 104.8
  },
  "luminance": 0.23267
}

Semantic roles & 50–950 ramp

primary
#8F871F
secondary
#4E56BC
accent
#4CE740
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F871F

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

Preview Lab → · Contrast checker → · Palette generator →

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