#9FA331#9FA331

#9FA331 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.1% C 0.133 H 111.4°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#9FA331
RGBrgb(159, 163, 49)
HSLhsl(62, 54%, 42%)
HSVhsv(62, 70%, 64%)
CMYKcmyk(2.5%, 0%, 69.9%, 36.1%)
CIE-LABlab(64.79, -15.75, 55.69)
CIE-LCHlch(64.79, 57.88, 105.79°)
OKLaboklab(69.11% -0.0487 0.1242)
OKLCHoklch(69.11% 0.133 111.4)
XYZxyz(27.9505, 33.7878, 7.9545)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA331 #3531A3
analogous
#A36E31 #9FA331 #66A331
triadic
#9FA331 #319FA3 #A3319F
tetradic
#9FA331 #31A36E #3531A3 #A33166
square
#9FA331 #31A36E #3531A3 #A33166
split-complementary
#9FA331 #3166A3 #6E31A3
monochromatic
#434515 #717423 #9FA331 #C4C849 #D3D678

Accessibility & contrast

On white

2.71
#9FA331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#9FA331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA331
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA331#FFFFFF#000000##000000
##9FA3311.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B09F39
Tritanopia (blue-blind)
#AA998C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #9fa331;
/* rgb */ color: rgb(159, 163, 49);
/* oklch */ color: oklch(69.1% 0.133 111.4);
Tailwind
colors: {
  custom: {
    50: '#bebe71',
    500: '#9fa331',
    950: '#000000',
  },
}
SCSS
$custom: #9fa331;
$custom-light: #bebe71;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa331",
  "rgb": {
    "r": 159,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 62.105,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.69108,
    "c": 0.13342,
    "h": 111.4
  },
  "luminance": 0.33787
}

Semantic roles & 50–950 ramp

primary
#9FA331
secondary
#7471BF
accent
#4BDD50
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA331

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

Preview Lab → · Contrast checker → · Palette generator →

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