#9F8D2A#9F8D2A

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

Color values

HEX#9F8D2A
RGBrgb(159, 141, 42)
HSLhsl(51, 58%, 39%)
HSVhsv(51, 74%, 62%)
CMYKcmyk(0%, 11.3%, 73.6%, 37.6%)
CIE-LABlab(58.59, -4.43, 52.31)
CIE-LCHlch(58.59, 52.50, 94.84°)
OKLaboklab(64.16% -0.0175 0.1158)
OKLCHoklch(64.16% 0.117 98.6)
XYZxyz(24.2420, 26.5890, 6.0453)
Luminance0.2659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D2A #2A3C9F
analogous
#9F532A #9F8D2A #779F2A
triadic
#9F8D2A #2A9F8D #8D2A9F
tetradic
#9F8D2A #2A9F53 #2A3C9F #9F2A77
square
#9F8D2A #2A9F53 #2A3C9F #9F2A77
split-complementary
#9F8D2A #2A779F #532A9F
monochromatic
#3E3710 #6F621D #9F8D2A #CBB53B #D8C76B

Accessibility & contrast

On white

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

On black

6.32
#9F8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D2A
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D2A#FFFFFF#000000##000000
##9F8D2A1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891A
Deuteranopia (green-blind)
#A09030
Tritanopia (blue-blind)
#AC8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d2a;
/* rgb */ color: rgb(159, 141, 42);
/* oklch */ color: oklch(64.2% 0.117 98.6);
Tailwind
colors: {
  custom: {
    50: '#bfae6a',
    500: '#9f8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d2a;
$custom-light: #bfae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d2a",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 50.769,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64155,
    "c": 0.11711,
    "h": 98.6
  },
  "luminance": 0.26588
}

Semantic roles & 50–950 ramp

primary
#9F8D2A
secondary
#6674BF
accent
#5EE146
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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