#9D971F#9D971F

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

Color values

HEX#9D971F
RGBrgb(157, 151, 31)
HSLhsl(57, 67%, 37%)
HSVhsv(57, 80%, 62%)
CMYKcmyk(0%, 3.8%, 80.3%, 38.4%)
CIE-LABlab(61.13, -11.18, 58.42)
CIE-LCHlch(61.13, 59.48, 100.83°)
OKLaboklab(66.11% -0.0375 0.1268)
OKLCHoklch(66.11% 0.132 106.5)
XYZxyz(25.2196, 29.4012, 5.6426)
Luminance0.2940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D971F #1F259D
analogous
#9D581F #9D971F #649D1F
triadic
#9D971F #1F9D97 #971F9D
tetradic
#9D971F #1F9D58 #1F259D #9D1F64
square
#9D971F #1F9D58 #1F259D #9D1F64
split-complementary
#9D971F #1F649D #581F9D
monochromatic
#37350B #6A6615 #9D971F #D0C829 #DED858

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D971F#FFFFFF#000000##000000
##9D971F1.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)
#A79629
Tritanopia (blue-blind)
#A98C81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9d971f;
/* rgb */ color: rgb(157, 151, 31);
/* oklch */ color: oklch(66.1% 0.132 106.5);
Tailwind
colors: {
  custom: {
    50: '#beb566',
    500: '#9d971f',
    950: '#000000',
  },
}
SCSS
$custom: #9d971f;
$custom-light: #beb566;
$custom-dark: #000000;
JSON
{
  "hex": "#9d971f",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 57.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.66112,
    "c": 0.13217,
    "h": 106.5
  },
  "luminance": 0.294
}

Semantic roles & 50–950 ramp

primary
#9D971F
secondary
#565BC2
accent
#46EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D971F

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

Preview Lab → · Contrast checker → · Palette generator →

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