#9F8A42#9F8A42

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

Color values

HEX#9F8A42
RGBrgb(159, 138, 66)
HSLhsl(46, 41%, 44%)
HSVhsv(46, 58%, 62%)
CMYKcmyk(0%, 13.2%, 58.5%, 37.6%)
CIE-LABlab(57.98, -1.24, 40.83)
CIE-LCHlch(57.98, 40.85, 91.74°)
OKLaboklab(63.74% -0.0055 0.0952)
OKLCHoklch(63.74% 0.095 93.3)
XYZxyz(24.3709, 25.9424, 8.8769)
Luminance0.2594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A42 #42579F
analogous
#9F5C42 #9F8A42 #869F42
triadic
#9F8A42 #429F8A #8A429F
tetradic
#9F8A42 #429F5C #42579F #9F4286
square
#9F8A42 #429F5C #42579F #9F4286
split-complementary
#9F8A42 #42869F #5C429F
monochromatic
#493F1E #746430 #9F8A42 #BDA861 #CFC08C

Accessibility & contrast

On white

3.39
#9F8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#9F8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A42
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A42#FFFFFF#000000##000000
##9F8A421.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#97883B
Deuteranopia (green-blind)
#9C8E45
Tritanopia (blue-blind)
#AB807A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a42;
/* rgb */ color: rgb(159, 138, 66);
/* oklch */ color: oklch(63.7% 0.095 93.3);
Tailwind
colors: {
  custom: {
    50: '#beab79',
    500: '#9f8a42',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a42;
$custom-light: #beab79;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a42",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 46.452,
    "s": 41.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.63741,
    "c": 0.09537,
    "h": 93.3
  },
  "luminance": 0.25941
}

Semantic roles & 50–950 ramp

primary
#9F8A42
secondary
#828FBA
accent
#72D157
background
#FCFAF7
surface
#F8F4ED
border
#D1CEC8
text
#121009
muted
#817F7B

Preview Lab

Preview with #9F8A42

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

Preview Lab → · Contrast checker → · Palette generator →

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