#9D971C#9D971C

#9D971C is a light, vivid yellow. Relative luminance 0.294; OKLCH L 66.1% C 0.134 H 106.5°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D971C
RGBrgb(157, 151, 28)
HSLhsl(57, 70%, 36%)
HSVhsv(57, 82%, 62%)
CMYKcmyk(0%, 3.8%, 82.2%, 38.4%)
CIE-LABlab(61.12, -11.28, 59.29)
CIE-LCHlch(61.12, 60.35, 100.78°)
OKLaboklab(66.1% -0.038 0.128)
OKLCHoklch(66.1% 0.134 106.5)
XYZxyz(25.1819, 29.3861, 5.4440)
Luminance0.2939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D971C #1C229D
analogous
#9D571C #9D971C #639D1C
triadic
#9D971C #1C9D97 #971C9D
tetradic
#9D971C #1C9D57 #1C229D #9D1C63
square
#9D971C #1C9D57 #1C229D #9D1C63
split-complementary
#9D971C #1C639D #571C9D
monochromatic
#353309 #696513 #9D971C #D1C925 #E0DA53

Accessibility & contrast

On white

3.05
#9D971C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#9D971C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D971C
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D971C#FFFFFF#000000##000000
##9D971C1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A79627
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9d971c;
/* rgb */ color: rgb(157, 151, 28);
/* oklch */ color: oklch(66.1% 0.134 106.5);
Tailwind
colors: {
  custom: {
    50: '#beb565',
    500: '#9d971c',
    950: '#000000',
  },
}
SCSS
$custom: #9d971c;
$custom-light: #beb565;
$custom-dark: #000000;
JSON
{
  "hex": "#9d971c",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 28
  },
  "hsl": {
    "h": 57.209,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66098,
    "c": 0.13355,
    "h": 106.5
  },
  "luminance": 0.29385
}

Semantic roles & 50–950 ramp

primary
#9D971C
secondary
#5157C3
accent
#44ED3B
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D971C

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

Preview Lab → · Contrast checker → · Palette generator →

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