#9F8A3A#9F8A3A

#9F8A3A is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.103 H 94.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9F8A3A
RGBrgb(159, 138, 58)
HSLhsl(48, 47%, 43%)
HSVhsv(48, 64%, 62%)
CMYKcmyk(0%, 13.2%, 63.5%, 37.6%)
CIE-LABlab(57.90, -1.84, 44.63)
CIE-LCHlch(57.90, 44.67, 92.36°)
OKLaboklab(63.65% -0.0082 0.1023)
OKLCHoklch(63.65% 0.103 94.6)
XYZxyz(24.1514, 25.8546, 7.7205)
Luminance0.2585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A3A #3A4F9F
analogous
#9F583A #9F8A3A #819F3A
triadic
#9F8A3A #3A9F8A #8A3A9F
tetradic
#9F8A3A #3A9F58 #3A4F9F #9F3A81
square
#9F8A3A #3A9F58 #3A4F9F #9F3A81
split-complementary
#9F8A3A #3A819F #583A9F
monochromatic
#453C19 #72632A #9F8A3A #C1AB55 #D1C182

Accessibility & contrast

On white

3.40
#9F8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9F8A3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A3A
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A3A#FFFFFF#000000##000000
##9F8A3A1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978731
Deuteranopia (green-blind)
#9D8E3E
Tritanopia (blue-blind)
#AB8079
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a3a;
/* rgb */ color: rgb(159, 138, 58);
/* oklch */ color: oklch(63.6% 0.103 94.6);
Tailwind
colors: {
  custom: {
    50: '#beab74',
    500: '#9f8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a3a;
$custom-light: #beab74;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a3a",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 47.525,
    "s": 46.544,
    "l": 42.549
  },
  "oklch": {
    "l": 0.63648,
    "c": 0.10262,
    "h": 94.6
  },
  "luminance": 0.25853
}

Semantic roles & 50–950 ramp

primary
#9F8A3A
secondary
#7A87BB
accent
#6DD652
background
#FCFAF7
surface
#F8F4ED
border
#D1CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9F8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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