#9FA731#9FA731

#9FA731 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.0% C 0.138 H 113.3°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#9FA731
RGBrgb(159, 167, 49)
HSLhsl(64, 55%, 42%)
HSVhsv(64, 71%, 65%)
CMYKcmyk(4.8%, 0%, 70.7%, 34.5%)
CIE-LABlab(65.93, -17.80, 56.81)
CIE-LCHlch(65.93, 59.54, 107.40°)
OKLaboklab(70.02% -0.0544 0.1266)
OKLCHoklch(70.02% 0.138 113.3)
XYZxyz(28.6720, 35.2307, 8.1950)
Luminance0.3523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA731 #3931A7
analogous
#A77431 #9FA731 #64A731
triadic
#9FA731 #319FA7 #A7319F
tetradic
#9FA731 #31A774 #3931A7 #A73164
square
#9FA731 #31A774 #3931A7 #A73164
split-complementary
#9FA731 #3164A7 #7431A7
monochromatic
#454815 #727823 #9FA731 #C2CA4B #D2D87A

Accessibility & contrast

On white

2.61
#9FA731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#9FA731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA731
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA731#FFFFFF#000000##000000
##9FA7311.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F1D
Deuteranopia (green-blind)
#B3A13A
Tritanopia (blue-blind)
#AA9D90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #9fa731;
/* rgb */ color: rgb(159, 167, 49);
/* oklch */ color: oklch(70.0% 0.138 113.3);
Tailwind
colors: {
  custom: {
    50: '#bec171',
    500: '#9fa731',
    950: '#000000',
  },
}
SCSS
$custom: #9fa731;
$custom-light: #bec171;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa731",
  "rgb": {
    "r": 159,
    "g": 167,
    "b": 49
  },
  "hsl": {
    "h": 64.068,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.70016,
    "c": 0.13779,
    "h": 113.3
  },
  "luminance": 0.3523
}

Semantic roles & 50–950 ramp

primary
#9FA731
secondary
#7873C1
accent
#4ADE54
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA731

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

Preview Lab → · Contrast checker → · Palette generator →

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