#9F971F#9F971F

#9F971F is a light, vivid yellow. Relative luminance 0.296; OKLCH L 66.3% C 0.132 H 105.4°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9F971F
RGBrgb(159, 151, 31)
HSLhsl(56, 67%, 37%)
HSVhsv(56, 81%, 62%)
CMYKcmyk(0%, 5%, 80.5%, 37.6%)
CIE-LABlab(61.31, -10.28, 58.65)
CIE-LCHlch(61.31, 59.54, 99.94°)
OKLaboklab(66.3% -0.0351 0.1271)
OKLCHoklch(66.3% 0.132 105.4)
XYZxyz(25.6131, 29.6041, 5.6611)
Luminance0.2960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F971F #1F279F
analogous
#9F571F #9F971F #679F1F
triadic
#9F971F #1F9F97 #971F9F
tetradic
#9F971F #1F9F57 #1F279F #9F1F67
square
#9F971F #1F9F57 #1F279F #9F1F67
split-complementary
#9F971F #1F679F #571F9F
monochromatic
#39360B #6C6615 #9F971F #D2C829 #DFD65A

Accessibility & contrast

On white

3.03
#9F971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#9F971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F971F
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F971F#FFFFFF#000000##000000
##9F971F1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A59100
Deuteranopia (green-blind)
#A89629
Tritanopia (blue-blind)
#AB8C81
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9f971f;
/* rgb */ color: rgb(159, 151, 31);
/* oklch */ color: oklch(66.3% 0.132 105.4);
Tailwind
colors: {
  custom: {
    50: '#bfb566',
    500: '#9f971f',
    950: '#000000',
  },
}
SCSS
$custom: #9f971f;
$custom-light: #bfb566;
$custom-dark: #000000;
JSON
{
  "hex": "#9f971f",
  "rgb": {
    "r": 159,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 56.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.66296,
    "c": 0.13189,
    "h": 105.4
  },
  "luminance": 0.29603
}

Semantic roles & 50–950 ramp

primary
#9F971F
secondary
#575EC3
accent
#48EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F971F

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

Preview Lab → · Contrast checker → · Palette generator →

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