#9F8D1F#9F8D1F

#9F8D1F is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.123 H 99.3°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9F8D1F
RGBrgb(159, 141, 31)
HSLhsl(52, 67%, 37%)
HSVhsv(52, 81%, 62%)
CMYKcmyk(0%, 11.3%, 80.5%, 37.6%)
CIE-LABlab(58.53, -4.90, 56.18)
CIE-LCHlch(58.53, 56.39, 94.98°)
OKLaboklab(64.08% -0.0199 0.1218)
OKLCHoklch(64.08% 0.123 99.3)
XYZxyz(24.0715, 26.5208, 5.1472)
Luminance0.2652 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D1F #1F319F
analogous
#9F4D1F #9F8D1F #719F1F
triadic
#9F8D1F #1F9F8D #8D1F9F
tetradic
#9F8D1F #1F9F4D #1F319F #9F1F71
square
#9F8D1F #1F9F4D #1F319F #9F1F71
split-complementary
#9F8D1F #1F719F #4D1F9F
monochromatic
#39320B #6C6015 #9F8D1F #D2BA29 #DFCC5A

Accessibility & contrast

On white

3.33
#9F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9F8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D1F
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D1F#FFFFFF#000000##000000
##9F8D1F1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8901
Deuteranopia (green-blind)
#A09027
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d1f;
/* rgb */ color: rgb(159, 141, 31);
/* oklch */ color: oklch(64.1% 0.123 99.3);
Tailwind
colors: {
  custom: {
    50: '#bfae65',
    500: '#9f8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d1f;
$custom-light: #bfae65;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d1f",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 51.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.64084,
    "c": 0.12345,
    "h": 99.3
  },
  "luminance": 0.2652
}

Semantic roles & 50–950 ramp

primary
#9F8D1F
secondary
#5766C3
accent
#56EA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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