#9FA421#9FA421

#9FA421 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.2% C 0.144 H 111.9°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#9FA421
RGBrgb(159, 164, 33)
HSLhsl(62, 66%, 39%)
HSVhsv(62, 80%, 64%)
CMYKcmyk(3%, 0%, 79.9%, 35.7%)
CIE-LABlab(64.99, -16.99, 61.31)
CIE-LCHlch(64.99, 63.62, 105.49°)
OKLaboklab(69.24% -0.0536 0.1332)
OKLCHoklch(69.24% 0.144 111.9)
XYZxyz(27.8490, 34.0324, 6.5404)
Luminance0.3403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA421 #2621A4
analogous
#A46721 #9FA421 #5DA421
triadic
#9FA421 #219FA4 #A4219F
tetradic
#9FA421 #21A467 #2621A4 #A4215D
square
#9FA421 #21A467 #2621A4 #A4215D
split-complementary
#9FA421 #215DA4 #6721A4
monochromatic
#3C3E0C #6E7117 #9FA421 #CED52D #DADF60

Accessibility & contrast

On white

2.69
#9FA421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#9FA421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA421
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA421#FFFFFF#000000##000000
##9FA4211.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B29F2D
Tritanopia (blue-blind)
#AA998C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa421;
/* rgb */ color: rgb(159, 164, 33);
/* oklch */ color: oklch(69.2% 0.144 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe69',
    500: '#9fa421',
    950: '#000000',
  },
}
SCSS
$custom: #9fa421;
$custom-light: #bfbe69;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa421",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 33
  },
  "hsl": {
    "h": 62.29,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.69236,
    "c": 0.14359,
    "h": 111.9
  },
  "luminance": 0.34032
}

Semantic roles & 50–950 ramp

primary
#9FA421
secondary
#615DC4
accent
#3EE945
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9FA421

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

Preview Lab → · Contrast checker → · Palette generator →

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