#9D971A#9D971A

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

Color values

HEX#9D971A
RGBrgb(157, 151, 26)
HSLhsl(57, 72%, 36%)
HSVhsv(57, 83%, 62%)
CMYKcmyk(0%, 3.8%, 83.4%, 38.4%)
CIE-LABlab(61.11, -11.35, 59.83)
CIE-LCHlch(61.11, 60.89, 100.74°)
OKLaboklab(66.09% -0.0383 0.1288)
OKLCHoklch(66.09% 0.134 106.6)
XYZxyz(25.1588, 29.3768, 5.3221)
Luminance0.2938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D971A #1A209D
analogous
#9D551A #9D971A #619D1A
triadic
#9D971A #1A9D97 #971A9D
tetradic
#9D971A #1A9D55 #1A209D #9D1A61
square
#9D971A #1A9D55 #1A209D #9D1A61
split-complementary
#9D971A #1A619D #551A9D
monochromatic
#343209 #686511 #9D971A #D2C923 #E2DB4F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #9d971a;
/* rgb */ color: rgb(157, 151, 26);
/* oklch */ color: oklch(66.1% 0.134 106.6);
Tailwind
colors: {
  custom: {
    50: '#beb564',
    500: '#9d971a',
    950: '#000000',
  },
}
SCSS
$custom: #9d971a;
$custom-light: #beb564;
$custom-dark: #000000;
JSON
{
  "hex": "#9d971a",
  "rgb": {
    "r": 157,
    "g": 151,
    "b": 26
  },
  "hsl": {
    "h": 57.252,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.66088,
    "c": 0.1344,
    "h": 106.6
  },
  "luminance": 0.29376
}

Semantic roles & 50–950 ramp

primary
#9D971A
secondary
#4E54C4
accent
#42EE39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9D971A

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

Preview Lab → · Contrast checker → · Palette generator →

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