#9F981A#9F981A

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

Color values

HEX#9F981A
RGBrgb(159, 152, 26)
HSLhsl(57, 72%, 36%)
HSVhsv(57, 84%, 62%)
CMYKcmyk(0%, 4.4%, 83.6%, 37.6%)
CIE-LABlab(61.57, -10.98, 60.29)
CIE-LCHlch(61.57, 61.28, 100.32°)
OKLaboklab(66.5% -0.0374 0.1297)
OKLCHoklch(66.5% 0.135 106.1)
XYZxyz(25.7139, 29.9030, 5.3945)
Luminance0.2990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F981A #1A219F
analogous
#9F561A #9F981A #649F1A
triadic
#9F981A #1A9F98 #981A9F
tetradic
#9F981A #1A9F56 #1A219F #9F1A64
square
#9F981A #1A9F56 #1A219F #9F1A64
split-complementary
#9F981A #1A649F #561A9F
monochromatic
#363309 #6A6611 #9F981A #D4CA23 #E3DB51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #9f981a;
/* rgb */ color: rgb(159, 152, 26);
/* oklch */ color: oklch(66.5% 0.135 106.1);
Tailwind
colors: {
  custom: {
    50: '#bfb665',
    500: '#9f981a',
    950: '#000000',
  },
}
SCSS
$custom: #9f981a;
$custom-light: #bfb665;
$custom-dark: #000000;
JSON
{
  "hex": "#9f981a",
  "rgb": {
    "r": 159,
    "g": 152,
    "b": 26
  },
  "hsl": {
    "h": 56.842,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66496,
    "c": 0.135,
    "h": 106.1
  },
  "luminance": 0.29902
}

Semantic roles & 50–950 ramp

primary
#9F981A
secondary
#5056C5
accent
#43EF39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F981A

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

Preview Lab → · Contrast checker → · Palette generator →

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