#9A971F#9A971F

#9A971F is a light, vivid yellow. Relative luminance 0.291; OKLCH L 65.8% C 0.133 H 108.0°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9A971F
RGBrgb(154, 151, 31)
HSLhsl(59, 66%, 36%)
HSVhsv(59, 80%, 60%)
CMYKcmyk(0%, 1.9%, 79.9%, 39.6%)
CIE-LABlab(60.87, -12.53, 58.09)
CIE-LCHlch(60.87, 59.43, 102.17°)
OKLaboklab(65.84% -0.0411 0.1262)
OKLCHoklch(65.84% 0.133 108)
XYZxyz(24.6414, 29.1030, 5.6155)
Luminance0.2910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A971F #1F229A
analogous
#9A5A1F #9A971F #609A1F
triadic
#9A971F #1F9A97 #971F9A
tetradic
#9A971F #1F9A5A #1F229A #9A1F60
square
#9A971F #1F9A5A #1F229A #9A1F60
split-complementary
#9A971F #1F609A #5A1F9A
monochromatic
#34330A #676515 #9A971F #CDC929 #DDDA56

Accessibility & contrast

On white

3.08
#9A971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#9A971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A971F
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A971F#FFFFFF#000000##000000
##9A971F1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#A6952A
Tritanopia (blue-blind)
#A68D81
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #9a971f;
/* rgb */ color: rgb(154, 151, 31);
/* oklch */ color: oklch(65.8% 0.133 108.0);
Tailwind
colors: {
  custom: {
    50: '#bbb566',
    500: '#9a971f',
    950: '#000000',
  },
}
SCSS
$custom: #9a971f;
$custom-light: #bbb566;
$custom-dark: #000000;
JSON
{
  "hex": "#9a971f",
  "rgb": {
    "r": 154,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 58.537,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.6584,
    "c": 0.13269,
    "h": 108
  },
  "luminance": 0.29102
}

Semantic roles & 50–950 ramp

primary
#9A971F
secondary
#5457C1
accent
#43E93E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#121106
muted
#81807A

Preview Lab

Preview with #9A971F

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

Preview Lab → · Contrast checker → · Palette generator →

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