#9D971D#9D971D

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

Color values

HEX#9D971D
RGBrgb(157, 151, 29)
HSLhsl(57, 69%, 36%)
HSVhsv(57, 82%, 62%)
CMYKcmyk(0%, 3.8%, 81.5%, 38.4%)
CIE-LABlab(61.13, -11.25, 59.01)
CIE-LCHlch(61.13, 60.07, 100.79°)
OKLaboklab(66.1% -0.0378 0.1276)
OKLCHoklch(66.1% 0.133 106.5)
XYZxyz(25.1941, 29.3910, 5.5081)
Luminance0.2939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D971D #1D239D
analogous
#9D571D #9D971D #639D1D
triadic
#9D971D #1D9D97 #971D9D
tetradic
#9D971D #1D9D57 #1D239D #9D1D63
square
#9D971D #1D9D57 #1D239D #9D1D63
split-complementary
#9D971D #1D639D #571D9D
monochromatic
#36340A #696513 #9D971D #D1C927 #E0D955

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D971D#FFFFFF#000000##000000
##9D971D1.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)
#A79628
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9d971d;
/* rgb */ color: rgb(157, 151, 29);
/* oklch */ color: oklch(66.1% 0.133 106.5);
Tailwind
colors: {
  custom: {
    50: '#beb566',
    500: '#9d971d',
    950: '#000000',
  },
}
SCSS
$custom: #9d971d;
$custom-light: #beb566;
$custom-dark: #000000;
JSON
{
  "hex": "#9d971d",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 29
  },
  "hsl": {
    "h": 57.188,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.66102,
    "c": 0.13311,
    "h": 106.5
  },
  "luminance": 0.2939
}

Semantic roles & 50–950 ramp

primary
#9D971D
secondary
#5358C3
accent
#44EC3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D971D

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

Preview Lab → · Contrast checker → · Palette generator →

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