#9C981F#9C981F

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

Color values

HEX#9C981F
RGBrgb(156, 152, 31)
HSLhsl(58, 67%, 37%)
HSVhsv(58, 80%, 61%)
CMYKcmyk(0%, 2.6%, 80.1%, 38.8%)
CIE-LABlab(61.33, -12.16, 58.56)
CIE-LCHlch(61.33, 59.81, 101.73°)
OKLaboklab(66.25% -0.0401 0.1271)
OKLCHoklch(66.25% 0.133 107.5)
XYZxyz(25.1869, 29.6242, 5.6874)
Luminance0.2962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C981F #1F239C
analogous
#9C5A1F #9C981F #629C1F
triadic
#9C981F #1F9C98 #981F9C
tetradic
#9C981F #1F9C5A #1F239C #9C1F62
square
#9C981F #1F9C5A #1F239C #9C1F62
split-complementary
#9C981F #1F629C #5A1F9C
monochromatic
#36350B #696615 #9C981F #CFCA29 #DED958

Accessibility & contrast

On white

3.03
#9C981F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C981F#FFFFFF#000000##000000
##9C981F1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59200
Deuteranopia (green-blind)
#A8962A
Tritanopia (blue-blind)
#A88D82
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9c981f;
/* rgb */ color: rgb(156, 152, 31);
/* oklch */ color: oklch(66.2% 0.133 107.5);
Tailwind
colors: {
  custom: {
    50: '#bdb667',
    500: '#9c981f',
    950: '#000000',
  },
}
SCSS
$custom: #9c981f;
$custom-light: #bdb667;
$custom-dark: #000000;
JSON
{
  "hex": "#9c981f",
  "rgb": {
    "r": 156,
    "g": 152,
    "b": 31
  },
  "hsl": {
    "h": 58.08,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.66246,
    "c": 0.13328,
    "h": 107.5
  },
  "luminance": 0.29623
}

Semantic roles & 50–950 ramp

primary
#9C981F
secondary
#5559C1
accent
#44EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9C981F

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

Preview Lab → · Contrast checker → · Palette generator →

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