#9F981C#9F981C

#9F981C is a light, vivid yellow. Relative luminance 0.299; OKLCH L 66.5% C 0.134 H 106.0°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9F981C
RGBrgb(159, 152, 28)
HSLhsl(57, 70%, 37%)
HSVhsv(57, 82%, 62%)
CMYKcmyk(0%, 4.4%, 82.4%, 37.6%)
CIE-LABlab(61.58, -10.91, 59.75)
CIE-LCHlch(61.58, 60.74, 100.35°)
OKLaboklab(66.51% -0.0371 0.1289)
OKLCHoklch(66.51% 0.134 106)
XYZxyz(25.7370, 29.9122, 5.5163)
Luminance0.2991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F981C #1C239F
analogous
#9F571C #9F981C #659F1C
triadic
#9F981C #1C9F98 #981C9F
tetradic
#9F981C #1C9F57 #1C239F #9F1C65
square
#9F981C #1C9F57 #1C239F #9F1C65
split-complementary
#9F981C #1C659F #571C9F
monochromatic
#37350A #6B6613 #9F981C #D3CA25 #E1D954

Accessibility & contrast

On white

3.01
#9F981C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#9F981C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F981C
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F981C#FFFFFF#000000##000000
##9F981C1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69200
Deuteranopia (green-blind)
#A99727
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f981c;
/* rgb */ color: rgb(159, 152, 28);
/* oklch */ color: oklch(66.5% 0.134 106.0);
Tailwind
colors: {
  custom: {
    50: '#bfb665',
    500: '#9f981c',
    950: '#000000',
  },
}
SCSS
$custom: #9f981c;
$custom-light: #bfb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9f981c",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 28
  },
  "hsl": {
    "h": 56.794,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.66505,
    "c": 0.13416,
    "h": 106
  },
  "luminance": 0.29911
}

Semantic roles & 50–950 ramp

primary
#9F981C
secondary
#5359C4
accent
#44ED3B
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F981C

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

Preview Lab → · Contrast checker → · Palette generator →

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