#9F8A2F#9F8A2F

#9F8A2F is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.111 H 95.9°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9F8A2F
RGBrgb(159, 138, 47)
HSLhsl(49, 54%, 40%)
HSVhsv(49, 70%, 62%)
CMYKcmyk(0%, 13.2%, 70.4%, 37.6%)
CIE-LABlab(57.80, -2.52, 49.48)
CIE-LCHlch(57.80, 49.55, 92.92°)
OKLaboklab(63.54% -0.0115 0.1108)
OKLCHoklch(63.54% 0.111 95.9)
XYZxyz(23.9008, 25.7544, 6.4009)
Luminance0.2575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2F #2F449F
analogous
#9F522F #9F8A2F #7C9F2F
triadic
#9F8A2F #2F9F8A #8A2F9F
tetradic
#9F8A2F #2F9F52 #2F449F #9F2F7C
square
#9F8A2F #2F9F52 #2F449F #9F2F7C
split-complementary
#9F8A2F #2F7C9F #522F9F
monochromatic
#413813 #706121 #9F8A2F #C8AF44 #D6C373

Accessibility & contrast

On white

3.41
#9F8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9F8A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2F#FFFFFF#000000##000000
##9F8A2F1.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988722
Deuteranopia (green-blind)
#9E8E34
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a2f;
/* rgb */ color: rgb(159, 138, 47);
/* oklch */ color: oklch(63.5% 0.111 95.9);
Tailwind
colors: {
  custom: {
    50: '#bfab6d',
    500: '#9f8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2f;
$custom-light: #bfab6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2f",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 48.75,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.63541,
    "c": 0.11135,
    "h": 95.9
  },
  "luminance": 0.25753
}

Semantic roles & 50–950 ramp

primary
#9F8A2F
secondary
#6D7CBD
accent
#66DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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