#9F971A#9F971A

#9F971A is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.134 H 105.5°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9F971A
RGBrgb(159, 151, 26)
HSLhsl(56, 72%, 36%)
HSVhsv(56, 84%, 62%)
CMYKcmyk(0%, 5%, 83.6%, 37.6%)
CIE-LABlab(61.29, -10.44, 60.05)
CIE-LCHlch(61.29, 60.95, 99.87°)
OKLaboklab(66.27% -0.0359 0.1292)
OKLCHoklch(66.27% 0.134 105.5)
XYZxyz(25.5523, 29.5797, 5.3406)
Luminance0.2958 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F971A #1A229F
analogous
#9F551A #9F971A #659F1A
triadic
#9F971A #1A9F97 #971A9F
tetradic
#9F971A #1A9F55 #1A229F #9F1A65
square
#9F971A #1A9F55 #1A229F #9F1A65
split-complementary
#9F971A #1A659F #551A9F
monochromatic
#363309 #6A6511 #9F971A #D4C923 #E3DA51

Accessibility & contrast

On white

3.04
#9F971A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#9F971A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F971A
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F971A#FFFFFF#000000##000000
##9F971A1.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A89626
Tritanopia (blue-blind)
#AB8C81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9f971a;
/* rgb */ color: rgb(159, 151, 26);
/* oklch */ color: oklch(66.3% 0.134 105.5);
Tailwind
colors: {
  custom: {
    50: '#bfb564',
    500: '#9f971a',
    950: '#000000',
  },
}
SCSS
$custom: #9f971a;
$custom-light: #bfb564;
$custom-dark: #000000;
JSON
{
  "hex": "#9f971a",
  "rgb": {
    "r": 159,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 56.391,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66272,
    "c": 0.1341,
    "h": 105.5
  },
  "luminance": 0.29579
}

Semantic roles & 50–950 ramp

primary
#9F971A
secondary
#5057C5
accent
#44EF39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F971A

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

Preview Lab → · Contrast checker → · Palette generator →

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