#9F8A31#9F8A31

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

Color values

HEX#9F8A31
RGBrgb(159, 138, 49)
HSLhsl(49, 53%, 41%)
HSVhsv(49, 69%, 62%)
CMYKcmyk(0%, 13.2%, 69.2%, 37.6%)
CIE-LABlab(57.82, -2.41, 48.64)
CIE-LCHlch(57.82, 48.70, 92.84°)
OKLaboklab(63.56% -0.0109 0.1093)
OKLCHoklch(63.56% 0.11 95.7)
XYZxyz(23.9421, 25.7709, 6.6183)
Luminance0.2577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A31 #31469F
analogous
#9F5331 #9F8A31 #7D9F31
triadic
#9F8A31 #319F8A #8A319F
tetradic
#9F8A31 #319F53 #31469F #9F317D
square
#9F8A31 #319F53 #31469F #9F317D
split-complementary
#9F8A31 #317D9F #53319F
monochromatic
#413914 #706123 #9F8A31 #C6AE47 #D5C376

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8A31#FFFFFF#000000##000000
##9F8A311.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)
#988725
Deuteranopia (green-blind)
#9D8E36
Tritanopia (blue-blind)
#AC7F78
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a31;
/* rgb */ color: rgb(159, 138, 49);
/* oklch */ color: oklch(63.6% 0.110 95.7);
Tailwind
colors: {
  custom: {
    50: '#bfab6e',
    500: '#9f8a31',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a31;
$custom-light: #bfab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a31",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 48.545,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.63559,
    "c": 0.10988,
    "h": 95.7
  },
  "luminance": 0.2577
}

Semantic roles & 50–950 ramp

primary
#9F8A31
secondary
#6F7EBD
accent
#67DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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