#8F981C#8F981C

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

Color values

HEX#8F981C
RGBrgb(143, 152, 28)
HSLhsl(64, 69%, 35%)
HSVhsv(64, 82%, 60%)
CMYKcmyk(5.9%, 0%, 81.6%, 40.4%)
CIE-LABlab(60.23, -18.06, 58.06)
CIE-LCHlch(60.23, 60.80, 107.28°)
OKLaboklab(65.1% -0.0561 0.126)
OKLCHoklch(65.1% 0.138 114)
XYZxyz(22.7663, 28.3804, 5.3771)
Luminance0.2838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F981C #251C98
analogous
#98631C #8F981C #51981C
triadic
#8F981C #1C8F98 #981C8F
tetradic
#8F981C #1C9863 #251C98 #981C51
square
#8F981C #1C9863 #251C98 #981C51
split-complementary
#8F981C #1C5198 #631C98
monochromatic
#2E3109 #5E6412 #8F981C #C0CC26 #D4DF50

Accessibility & contrast

On white

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

On black

6.68
#8F981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F981C
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F981C#FFFFFF#000000##000000
##8F981C1.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f981c;
/* rgb */ color: rgb(143, 152, 28);
/* oklch */ color: oklch(65.1% 0.138 114.0);
Tailwind
colors: {
  custom: {
    50: '#b3b665',
    500: '#8f981c',
    950: '#000000',
  },
}
SCSS
$custom: #8f981c;
$custom-light: #b3b665;
$custom-dark: #000000;
JSON
{
  "hex": "#8f981c",
  "rgb": {
    "r": 143,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 64.355,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.65099,
    "c": 0.13792,
    "h": 114
  },
  "luminance": 0.2838
}

Semantic roles & 50–950 ramp

primary
#8F981C
secondary
#574EC1
accent
#3CEC49
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111106
muted
#80807A

Preview Lab

Preview with #8F981C

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

Preview Lab → · Contrast checker → · Palette generator →

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