#9FAC31#9FAC31

#9FAC31 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.2% C 0.143 H 115.4°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#9FAC31
RGBrgb(159, 172, 49)
HSLhsl(66, 56%, 43%)
HSVhsv(66, 72%, 67%)
CMYKcmyk(7.6%, 0%, 71.5%, 32.5%)
CIE-LABlab(67.35, -20.34, 58.21)
CIE-LCHlch(67.35, 61.66, 109.26°)
OKLaboklab(71.16% -0.0615 0.1295)
OKLCHoklch(71.16% 0.143 115.4)
XYZxyz(29.6058, 37.0982, 8.5062)
Luminance0.3710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC31 #3E31AC
analogous
#AC7B31 #9FAC31 #62AC31
triadic
#9FAC31 #319FAC #AC319F
tetradic
#9FAC31 #31AC7B #3E31AC #AC3162
square
#9FAC31 #31AC7B #3E31AC #AC3162
split-complementary
#9FAC31 #3162AC #7B31AC
monochromatic
#474D16 #737C23 #9FAC31 #BFCC4E #D0DA7D

Accessibility & contrast

On white

2.49
#9FAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#9FAC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC31
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC31#FFFFFF#000000##000000
##9FAC311.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A31B
Deuteranopia (green-blind)
#B7A53B
Tritanopia (blue-blind)
#A9A294
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac31;
/* rgb */ color: rgb(159, 172, 49);
/* oklch */ color: oklch(71.2% 0.143 115.4);
Tailwind
colors: {
  custom: {
    50: '#bfc471',
    500: '#9fac31',
    950: '#000000',
  },
}
SCSS
$custom: #9fac31;
$custom-light: #bfc471;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac31",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 66.341,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.71156,
    "c": 0.14337,
    "h": 115.4
  },
  "luminance": 0.37098
}

Semantic roles & 50–950 ramp

primary
#9FAC31
secondary
#7E76C3
accent
#49DF59
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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