#9F8A3B#9F8A3B

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

Color values

HEX#9F8A3B
RGBrgb(159, 138, 59)
HSLhsl(47, 46%, 43%)
HSVhsv(47, 63%, 62%)
CMYKcmyk(0%, 13.2%, 62.9%, 37.6%)
CIE-LABlab(57.91, -1.77, 44.17)
CIE-LCHlch(57.91, 44.20, 92.29°)
OKLaboklab(63.66% -0.0079 0.1014)
OKLCHoklch(63.66% 0.102 94.4)
XYZxyz(24.1770, 25.8649, 7.8558)
Luminance0.2586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A3B #3B509F
analogous
#9F583B #9F8A3B #829F3B
triadic
#9F8A3B #3B9F8A #8A3B9F
tetradic
#9F8A3B #3B9F58 #3B509F #9F3B82
square
#9F8A3B #3B9F58 #3B509F #9F3B82
split-complementary
#9F8A3B #3B829F #583B9F
monochromatic
#463D1A #72632A #9F8A3B #C1AA57 #D1C183

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8A3B#FFFFFF#000000##000000
##9F8A3B1.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)
#978732
Deuteranopia (green-blind)
#9D8E3F
Tritanopia (blue-blind)
#AB8079
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a3b;
/* rgb */ color: rgb(159, 138, 59);
/* oklch */ color: oklch(63.7% 0.102 94.4);
Tailwind
colors: {
  custom: {
    50: '#beab74',
    500: '#9f8a3b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a3b;
$custom-light: #beab74;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a3b",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 59
  },
  "hsl": {
    "h": 47.4,
    "s": 45.872,
    "l": 42.745
  },
  "oklch": {
    "l": 0.63659,
    "c": 0.10174,
    "h": 94.4
  },
  "luminance": 0.25864
}

Semantic roles & 50–950 ramp

primary
#9F8A3B
secondary
#7B88BB
accent
#6ED652
background
#FCFAF7
surface
#F8F4ED
border
#D1CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9F8A3B

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

Preview Lab → · Contrast checker → · Palette generator →

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