#9F981D#9F981D

#9F981D 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#9F981D
RGBrgb(159, 152, 29)
HSLhsl(57, 69%, 37%)
HSVhsv(57, 82%, 62%)
CMYKcmyk(0%, 4.4%, 81.8%, 37.6%)
CIE-LABlab(61.58, -10.88, 59.47)
CIE-LCHlch(61.58, 60.46, 100.37°)
OKLaboklab(66.51% -0.0369 0.1285)
OKLCHoklch(66.51% 0.134 106)
XYZxyz(25.7492, 29.9171, 5.5804)
Luminance0.2992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F981D #1D249F
analogous
#9F571D #9F981D #659F1D
triadic
#9F981D #1D9F98 #981D9F
tetradic
#9F981D #1D9F57 #1D249F #9F1D65
square
#9F981D #1D9F57 #1D249F #9F1D65
split-complementary
#9F981D #1D659F #571D9F
monochromatic
#37350A #6B6714 #9F981D #D3C926 #E0D956

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F981D#FFFFFF#000000##000000
##9F981D1.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)
#A99728
Tritanopia (blue-blind)
#AB8D82
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9f981d;
/* rgb */ color: rgb(159, 152, 29);
/* oklch */ color: oklch(66.5% 0.134 106.0);
Tailwind
colors: {
  custom: {
    50: '#bfb666',
    500: '#9f981d',
    950: '#000000',
  },
}
SCSS
$custom: #9f981d;
$custom-light: #bfb666;
$custom-dark: #000000;
JSON
{
  "hex": "#9f981d",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 29
  },
  "hsl": {
    "h": 56.769,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66509,
    "c": 0.13372,
    "h": 106
  },
  "luminance": 0.29916
}

Semantic roles & 50–950 ramp

primary
#9F981D
secondary
#545AC4
accent
#45EC3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F981D

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

Preview Lab → · Contrast checker → · Palette generator →

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