#8F971B#8F971B

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

Color values

HEX#8F971B
RGBrgb(143, 151, 27)
HSLhsl(64, 70%, 35%)
HSVhsv(64, 82%, 59%)
CMYKcmyk(5.3%, 0%, 82.1%, 40.8%)
CIE-LABlab(59.94, -17.58, 58.08)
CIE-LCHlch(59.94, 60.68, 106.84°)
OKLaboklab(64.86% -0.0548 0.1259)
OKLCHoklch(64.86% 0.137 113.5)
XYZxyz(22.5929, 28.0525, 5.2612)
Luminance0.2805 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F971B #231B97
analogous
#97611B #8F971B #51971B
triadic
#8F971B #1B8F97 #971B8F
tetradic
#8F971B #1B9761 #231B97 #971B51
square
#8F971B #1B9761 #231B97 #971B51
split-complementary
#8F971B #1B5197 #611B97
monochromatic
#2D2F08 #5E6312 #8F971B #C0CB24 #D6DF4D

Accessibility & contrast

On white

3.18
#8F971B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F971B#FFFFFF#000000##000000
##8F971B1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f971b;
/* rgb */ color: rgb(143, 151, 27);
/* oklch */ color: oklch(64.9% 0.137 113.5);
Tailwind
colors: {
  custom: {
    50: '#b3b564',
    500: '#8f971b',
    950: '#000000',
  },
}
SCSS
$custom: #8f971b;
$custom-light: #b3b564;
$custom-dark: #000000;
JSON
{
  "hex": "#8f971b",
  "rgb": {
    "r": 143,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 63.871,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.64861,
    "c": 0.1373,
    "h": 113.5
  },
  "luminance": 0.28052
}

Semantic roles & 50–950 ramp

primary
#8F971B
secondary
#544CC1
accent
#3BEC47
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8F971B

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

Preview Lab → · Contrast checker → · Palette generator →

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