#9FAF37#9FAF37

#9FAF37 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 71.9% C 0.143 H 116.7°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#9FAF37
RGBrgb(159, 175, 55)
HSLhsl(68, 52%, 45%)
HSVhsv(68, 69%, 69%)
CMYKcmyk(9.1%, 0%, 68.6%, 31.4%)
CIE-LABlab(68.25, -21.50, 56.83)
CIE-LCHlch(68.25, 60.76, 110.72°)
OKLaboklab(71.89% -0.0641 0.1276)
OKLCHoklch(71.89% 0.143 116.7)
XYZxyz(30.3183, 38.3071, 9.4105)
Luminance0.3831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF37 #4737AF
analogous
#AF8337 #9FAF37 #63AF37
triadic
#9FAF37 #379FAF #AF379F
tetradic
#9FAF37 #37AF83 #4737AF #AF3763
square
#9FAF37 #37AF83 #4737AF #AF3763
split-complementary
#9FAF37 #3763AF #8337AF
monochromatic
#4A521A #758028 #9FAF37 #BBCB59 #CED987

Accessibility & contrast

On white

2.42
#9FAF37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#9FAF37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF37
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF37#FFFFFF#000000##000000
##9FAF371.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA625
Deuteranopia (green-blind)
#B9A740
Tritanopia (blue-blind)
#A9A597
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf37;
/* rgb */ color: rgb(159, 175, 55);
/* oklch */ color: oklch(71.9% 0.143 116.7);
Tailwind
colors: {
  custom: {
    50: '#bec675',
    500: '#9faf37',
    950: '#000000',
  },
}
SCSS
$custom: #9faf37;
$custom-light: #bec675;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf37",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 55
  },
  "hsl": {
    "h": 68,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71888,
    "c": 0.14281,
    "h": 116.7
  },
  "luminance": 0.38307
}

Semantic roles & 50–950 ramp

primary
#9FAF37
secondary
#887FC3
accent
#4CDC5F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121309
muted
#81827B

Preview Lab

Preview with #9FAF37

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

Preview Lab → · Contrast checker → · Palette generator →

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