#8F971F#8F971F

#8F971F is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.9% C 0.135 H 113.6°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8F971F
RGBrgb(143, 151, 31)
HSLhsl(64, 66%, 36%)
HSVhsv(64, 79%, 59%)
CMYKcmyk(5.3%, 0%, 79.5%, 40.8%)
CIE-LABlab(59.95, -17.43, 56.93)
CIE-LCHlch(59.95, 59.54, 107.03°)
OKLaboklab(64.88% -0.0541 0.1241)
OKLCHoklch(64.88% 0.135 113.6)
XYZxyz(22.6423, 28.0723, 5.5218)
Luminance0.2807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F971F #271F97
analogous
#97631F #8F971F #53971F
triadic
#8F971F #1F8F97 #971F8F
tetradic
#8F971F #1F9763 #271F97 #971F53
square
#8F971F #1F9763 #271F97 #971F53
split-complementary
#8F971F #1F5397 #631F97
monochromatic
#2F310A #5F6415 #8F971F #BFCA29 #D3DC54

Accessibility & contrast

On white

3.17
#8F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#8F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F971F
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F971F#FFFFFF#000000##000000
##8F971F1.003.176.616.61
#FFFFFF3.171.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A38F00
Deuteranopia (green-blind)
#A3922A
Tritanopia (blue-blind)
#998E81
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8f971f;
/* rgb */ color: rgb(143, 151, 31);
/* oklch */ color: oklch(64.9% 0.135 113.6);
Tailwind
colors: {
  custom: {
    50: '#b3b566',
    500: '#8f971f',
    950: '#000000',
  },
}
SCSS
$custom: #8f971f;
$custom-light: #b3b566;
$custom-dark: #000000;
JSON
{
  "hex": "#8f971f",
  "rgb": {
    "r": 143,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 64,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.64881,
    "c": 0.13542,
    "h": 113.6
  },
  "luminance": 0.28072
}

Semantic roles & 50–950 ramp

primary
#8F971F
secondary
#5A52BF
accent
#3FE94A
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8F971F

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

Preview Lab → · Contrast checker → · Palette generator →

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