#9FB31C#9FB31C

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

Color values

HEX#9FB31C
RGBrgb(159, 179, 28)
HSLhsl(68, 73%, 41%)
HSVhsv(68, 84%, 70%)
CMYKcmyk(11.2%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.25, -24.67, 66.31)
CIE-LCHlch(69.25, 70.75, 110.41°)
OKLaboklab(72.65% -0.0751 0.1431)
OKLCHoklch(72.65% 0.162 117.7)
XYZxyz(30.6286, 39.6953, 7.1468)
Luminance0.3970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB31C #301CB3
analogous
#B37B1C #9FB31C #53B31C
triadic
#9FB31C #1C9FB3 #B31C9F
tetradic
#9FB31C #1CB37B #301CB3 #B31C53
square
#9FB31C #1CB37B #301CB3 #B31C53
split-complementary
#9FB31C #1C53B3 #7B1CB3
monochromatic
#41490B #707E14 #9FB31C #C7DE2E #D5E763

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FB31C#FFFFFF#000000##000000
##9FB31C1.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)
#BEAA2D
Tritanopia (blue-blind)
#A9A899
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9fb31c;
/* rgb */ color: rgb(159, 179, 28);
/* oklch */ color: oklch(72.7% 0.162 117.7);
Tailwind
colors: {
  custom: {
    50: '#bfc969',
    500: '#9fb31c',
    950: '#000000',
  },
}
SCSS
$custom: #9fb31c;
$custom-light: #bfc969;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb31c",
  "rgb": {
    "r": 159,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 67.947,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72652,
    "c": 0.16161,
    "h": 117.7
  },
  "luminance": 0.39695
}

Semantic roles & 50–950 ramp

primary
#9FB31C
secondary
#6E5FCB
accent
#38F050
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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