#9FB421#9FB421

#9FB421 is a light, vivid yellow. Relative luminance 0.401; OKLCH L 72.9% C 0.161 H 118.1°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#9FB421
RGBrgb(159, 180, 33)
HSLhsl(69, 69%, 42%)
HSVhsv(69, 82%, 71%)
CMYKcmyk(11.7%, 0%, 81.7%, 29.4%)
CIE-LABlab(69.56, -25.00, 65.33)
CIE-LCHlch(69.56, 69.95, 110.94°)
OKLaboklab(72.9% -0.0756 0.1418)
OKLCHoklch(72.9% 0.161 118.1)
XYZxyz(30.8946, 40.1236, 7.5556)
Luminance0.4012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FB421 #3621B4
analogous
#B47F21 #9FB421 #56B421
triadic
#9FB421 #219FB4 #B4219F
tetradic
#9FB421 #21B47F #3621B4 #B42156
square
#9FB421 #21B47F #3621B4 #B42156
split-complementary
#9FB421 #2156B4 #7F21B4
monochromatic
#444D0E #718018 #9FB421 #C3DA38 #D3E46B

Accessibility & contrast

On white

2.33
#9FB421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#9FB421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FB421
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FB421#FFFFFF#000000##000000
##9FB4211.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA00
Deuteranopia (green-blind)
#BEAB31
Tritanopia (blue-blind)
#A9AA9A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #9fb421;
/* rgb */ color: rgb(159, 180, 33);
/* oklch */ color: oklch(72.9% 0.161 118.1);
Tailwind
colors: {
  custom: {
    50: '#bfca6b',
    500: '#9fb421',
    950: '#000000',
  },
}
SCSS
$custom: #9fb421;
$custom-light: #bfca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9fb421",
  "rgb": {
    "r": 159,
    "g": 180,
    "b": 33
  },
  "hsl": {
    "h": 68.571,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72904,
    "c": 0.16074,
    "h": 118.1
  },
  "luminance": 0.40123
}

Semantic roles & 50–950 ramp

primary
#9FB421
secondary
#7567CA
accent
#3CEC55
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FB421

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

Preview Lab → · Contrast checker → · Palette generator →

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