#9FAA31#9FAA31

#9FAA31 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 70.7% C 0.141 H 114.6°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#9FAA31
RGBrgb(159, 170, 49)
HSLhsl(65, 55%, 43%)
HSVhsv(65, 71%, 67%)
CMYKcmyk(6.5%, 0%, 71.2%, 33.3%)
CIE-LABlab(66.78, -19.33, 57.65)
CIE-LCHlch(66.78, 60.81, 108.53°)
OKLaboklab(70.7% -0.0587 0.1284)
OKLCHoklch(70.7% 0.141 114.6)
XYZxyz(29.2280, 36.3427, 8.3803)
Luminance0.3634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAA31 #3C31AA
analogous
#AA7931 #9FAA31 #62AA31
triadic
#9FAA31 #319FAA #AA319F
tetradic
#9FAA31 #31AA79 #3C31AA #AA3162
square
#9FAA31 #31AA79 #3C31AA #AA3162
split-complementary
#9FAA31 #3162AA #7931AA
monochromatic
#464B16 #737A23 #9FAA31 #C0CC4D #D1D97C

Accessibility & contrast

On white

2.54
#9FAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#9FAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAA31
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAA31#FFFFFF#000000##000000
##9FAA311.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11C
Deuteranopia (green-blind)
#B6A43A
Tritanopia (blue-blind)
#A9A092
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #9faa31;
/* rgb */ color: rgb(159, 170, 49);
/* oklch */ color: oklch(70.7% 0.141 114.6);
Tailwind
colors: {
  custom: {
    50: '#bfc371',
    500: '#9faa31',
    950: '#000000',
  },
}
SCSS
$custom: #9faa31;
$custom-light: #bfc371;
$custom-dark: #000000;
JSON
{
  "hex": "#9faa31",
  "rgb": {
    "r": 159,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 65.455,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.707,
    "c": 0.14112,
    "h": 114.6
  },
  "luminance": 0.36342
}

Semantic roles & 50–950 ramp

primary
#9FAA31
secondary
#7C75C2
accent
#49DF57
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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