#9C971F#9C971F

#9C971F is a light, vivid yellow. Relative luminance 0.293; OKLCH L 66.0% C 0.132 H 107.0°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#9C971F
RGBrgb(156, 151, 31)
HSLhsl(58, 67%, 37%)
HSVhsv(58, 80%, 61%)
CMYKcmyk(0%, 3.2%, 80.1%, 38.8%)
CIE-LABlab(61.05, -11.63, 58.31)
CIE-LCHlch(61.05, 59.46, 101.28°)
OKLaboklab(66.02% -0.0387 0.1266)
OKLCHoklch(66.02% 0.132 107)
XYZxyz(25.0253, 29.3010, 5.6335)
Luminance0.2930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C971F #1F249C
analogous
#9C591F #9C971F #639C1F
triadic
#9C971F #1F9C97 #971F9C
tetradic
#9C971F #1F9C59 #1F249C #9C1F63
square
#9C971F #1F9C59 #1F249C #9C1F63
split-complementary
#9C971F #1F639C #591F9C
monochromatic
#36340B #696615 #9C971F #CFC829 #DED858

Accessibility & contrast

On white

3.06
#9C971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#9C971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C971F
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C971F#FFFFFF#000000##000000
##9C971F1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A79529
Tritanopia (blue-blind)
#A88C81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9c971f;
/* rgb */ color: rgb(156, 151, 31);
/* oklch */ color: oklch(66.0% 0.132 107.0);
Tailwind
colors: {
  custom: {
    50: '#bdb566',
    500: '#9c971f',
    950: '#000000',
  },
}
SCSS
$custom: #9c971f;
$custom-light: #bdb566;
$custom-dark: #000000;
JSON
{
  "hex": "#9c971f",
  "rgb": {
    "r": 156,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 57.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.66021,
    "c": 0.13233,
    "h": 107
  },
  "luminance": 0.293
}

Semantic roles & 50–950 ramp

primary
#9C971F
secondary
#555AC1
accent
#45EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9C971F

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

Preview Lab → · Contrast checker → · Palette generator →

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