#9FB31D#9FB31D

#9FB31D is a light, vivid yellow. Relative luminance 0.397; OKLCH L 72.7% C 0.161 H 117.7°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#9FB31D
RGBrgb(159, 179, 29)
HSLhsl(68, 72%, 41%)
HSVhsv(68, 84%, 70%)
CMYKcmyk(11.2%, 0%, 83.8%, 29.8%)
CIE-LABlab(69.26, -24.64, 66.08)
CIE-LCHlch(69.26, 70.52, 110.45°)
OKLaboklab(72.66% -0.0749 0.1428)
OKLCHoklch(72.66% 0.161 117.7)
XYZxyz(30.6407, 39.7002, 7.2109)
Luminance0.3970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB31D #311DB3
analogous
#B37C1D #9FB31D #54B31D
triadic
#9FB31D #1D9FB3 #B31D9F
tetradic
#9FB31D #1DB37C #311DB3 #B31D54
square
#9FB31D #1DB37C #311DB3 #B31D54
split-complementary
#9FB31D #1D54B3 #7C1DB3
monochromatic
#414A0C #707E14 #9FB31D #C6DD30 #D5E664

Accessibility & contrast

On white

2.35
#9FB31D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#9FB31D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB31D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB31D#FFFFFF#000000##000000
##9FB31D1.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BEAA2E
Tritanopia (blue-blind)
#A9A999
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb31d;
/* rgb */ color: rgb(159, 179, 29);
/* oklch */ color: oklch(72.7% 0.161 117.7);
Tailwind
colors: {
  custom: {
    50: '#bfc96a',
    500: '#9fb31d',
    950: '#000000',
  },
}
SCSS
$custom: #9fb31d;
$custom-light: #bfc96a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb31d",
  "rgb": {
    "r": 159,
    "g": 179,
    "b": 29
  },
  "hsl": {
    "h": 68,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.72656,
    "c": 0.16124,
    "h": 117.7
  },
  "luminance": 0.397
}

Semantic roles & 50–950 ramp

primary
#9FB31D
secondary
#6F61CB
accent
#39EF51
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FB31D

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

Preview Lab → · Contrast checker → · Palette generator →

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