#1F9721#1F9721

#1F9721 is a mid, vivid green. Relative luminance 0.225; OKLCH L 59.1% C 0.184 H 143.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#1F9721
RGBrgb(31, 151, 33)
HSLhsl(121, 66%, 36%)
HSVhsv(121, 79%, 59%)
CMYKcmyk(79.5%, 0%, 78.1%, 40.8%)
CIE-LABlab(54.59, -54.09, 49.33)
CIE-LCHlch(54.59, 73.20, 137.64°)
OKLaboklab(59.08% -0.1467 0.1107)
OKLCHoklch(59.08% 0.184 143)
XYZxyz(11.9054, 22.5329, 5.1604)
Luminance0.2253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9721 #971F95
analogous
#59971F #1F9721 #1F975D
triadic
#1F9721 #211F97 #97211F
tetradic
#1F9721 #1F5997 #971F95 #975D1F
square
#1F9721 #1F5997 #971F95 #975D1F
split-complementary
#1F9721 #5D1F97 #971F59
monochromatic
#0A310B #156416 #1F9721 #29CA2C #54DC57

Accessibility & contrast

On white

3.81
#1F9721 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#1F9721 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9721
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9721#FFFFFF#000000##000000
##1F97211.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8803
Deuteranopia (green-blind)
#8D7F2E
Tritanopia (blue-blind)
#009281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9721;
/* rgb */ color: rgb(31, 151, 33);
/* oklch */ color: oklch(59.1% 0.184 143.0);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#1f9721',
    950: '#000000',
  },
}
SCSS
$custom: #1f9721;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9721",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 121,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59083,
    "c": 0.18379,
    "h": 143
  },
  "luminance": 0.22534
}

Semantic roles & 50–950 ramp

primary
#1F9721
secondary
#BF52BE
accent
#3FE6E9
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F9721

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

Preview Lab → · Contrast checker → · Palette generator →

#1F9721 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva