#8F981A#8F981A

#8F981A is a light, vivid yellow. Relative luminance 0.284; OKLCH L 65.1% C 0.139 H 114.0°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8F981A
RGBrgb(143, 152, 26)
HSLhsl(64, 71%, 35%)
HSVhsv(64, 83%, 60%)
CMYKcmyk(5.9%, 0%, 82.9%, 40.4%)
CIE-LABlab(60.22, -18.13, 58.60)
CIE-LCHlch(60.22, 61.34, 107.19°)
OKLaboklab(65.09% -0.0564 0.1268)
OKLCHoklch(65.09% 0.139 114)
XYZxyz(22.7431, 28.3712, 5.2552)
Luminance0.2837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F981A #231A98
analogous
#98621A #8F981A #50981A
triadic
#8F981A #1A8F98 #981A8F
tetradic
#8F981A #1A9862 #231A98 #981A50
square
#8F981A #1A9862 #231A98 #981A50
split-complementary
#8F981A #1A5098 #621A98
monochromatic
#2D2F08 #5E6411 #8F981A #C0CC23 #D6E04C

Accessibility & contrast

On white

3.15
#8F981A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#8F981A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F981A
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F981A#FFFFFF#000000##000000
##8F981A1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#A49227
Tritanopia (blue-blind)
#998E82
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8f981a;
/* rgb */ color: rgb(143, 152, 26);
/* oklch */ color: oklch(65.1% 0.139 114.0);
Tailwind
colors: {
  custom: {
    50: '#b3b664',
    500: '#8f981a',
    950: '#000000',
  },
}
SCSS
$custom: #8f981a;
$custom-light: #b3b664;
$custom-dark: #000000;
JSON
{
  "hex": "#8f981a",
  "rgb": {
    "r": 143,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 64.286,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.65089,
    "c": 0.1388,
    "h": 114
  },
  "luminance": 0.28371
}

Semantic roles & 50–950 ramp

primary
#8F981A
secondary
#544BC2
accent
#3AEE47
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8F981A

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

Preview Lab → · Contrast checker → · Palette generator →

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