#9FAC21#9FAC21

#9FAC21 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.1% C 0.152 H 115.2°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#9FAC21
RGBrgb(159, 172, 33)
HSLhsl(66, 68%, 40%)
HSVhsv(66, 81%, 67%)
CMYKcmyk(7.6%, 0%, 80.8%, 32.5%)
CIE-LABlab(67.27, -21.04, 63.32)
CIE-LCHlch(67.27, 66.72, 108.39°)
OKLaboklab(71.06% -0.0648 0.1375)
OKLCHoklch(71.06% 0.152 115.2)
XYZxyz(29.3260, 36.9863, 7.0328)
Luminance0.3699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAC21 #2E21AC
analogous
#AC7421 #9FAC21 #59AC21
triadic
#9FAC21 #219FAC #AC219F
tetradic
#9FAC21 #21AC74 #2E21AC #AC2159
square
#9FAC21 #21AC74 #2E21AC #AC2159
split-complementary
#9FAC21 #2159AC #7421AC
monochromatic
#40450D #707917 #9FAC21 #C8D832 #D6E266

Accessibility & contrast

On white

2.50
#9FAC21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#9FAC21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAC21
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAC21#FFFFFF#000000##000000
##9FAC211.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B8A52F
Tritanopia (blue-blind)
#AAA293
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #9fac21;
/* rgb */ color: rgb(159, 172, 33);
/* oklch */ color: oklch(71.1% 0.152 115.2);
Tailwind
colors: {
  custom: {
    50: '#bfc46a',
    500: '#9fac21',
    950: '#000000',
  },
}
SCSS
$custom: #9fac21;
$custom-light: #bfc46a;
$custom-dark: #000000;
JSON
{
  "hex": "#9fac21",
  "rgb": {
    "r": 159,
    "g": 172,
    "b": 33
  },
  "hsl": {
    "h": 65.612,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.71062,
    "c": 0.15202,
    "h": 115.2
  },
  "luminance": 0.36986
}

Semantic roles & 50–950 ramp

primary
#9FAC21
secondary
#6B62C7
accent
#3DEB4D
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9FAC21

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

Preview Lab → · Contrast checker → · Palette generator →

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