#9F8D2F#9F8D2F

#9F8D2F is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.2% C 0.114 H 98.2°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9F8D2F
RGBrgb(159, 141, 47)
HSLhsl(50, 54%, 40%)
HSVhsv(50, 70%, 62%)
CMYKcmyk(0%, 11.3%, 70.4%, 37.6%)
CIE-LABlab(58.63, -4.17, 50.32)
CIE-LCHlch(58.63, 50.49, 94.74°)
OKLaboklab(64.19% -0.0162 0.1125)
OKLCHoklch(64.19% 0.114 98.2)
XYZxyz(24.3372, 26.6271, 6.5464)
Luminance0.2663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D2F #2F419F
analogous
#9F552F #9F8D2F #799F2F
triadic
#9F8D2F #2F9F8D #8D2F9F
tetradic
#9F8D2F #2F9F55 #2F419F #9F2F79
square
#9F8D2F #2F9F55 #2F419F #9F2F79
split-complementary
#9F8D2F #2F799F #552F9F
monochromatic
#413913 #706321 #9F8D2F #C8B244 #D6C673

Accessibility & contrast

On white

3.32
#9F8D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#9F8D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D2F
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D2F#FFFFFF#000000##000000
##9F8D2F1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8922
Deuteranopia (green-blind)
#A09034
Tritanopia (blue-blind)
#AB827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d2f;
/* rgb */ color: rgb(159, 141, 47);
/* oklch */ color: oklch(64.2% 0.114 98.2);
Tailwind
colors: {
  custom: {
    50: '#bfae6d',
    500: '#9f8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d2f;
$custom-light: #bfae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d2f",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 50.357,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.64194,
    "c": 0.11368,
    "h": 98.2
  },
  "luminance": 0.26626
}

Semantic roles & 50–950 ramp

primary
#9F8D2F
secondary
#6D79BD
accent
#62DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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