#1F8221#1F8221

#1F8221 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.160 H 143.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8221
RGBrgb(31, 130, 33)
HSLhsl(121, 61%, 32%)
HSVhsv(121, 76%, 51%)
CMYKcmyk(76.2%, 0%, 74.6%, 49%)
CIE-LABlab(47.45, -47.11, 42.18)
CIE-LCHlch(47.45, 63.24, 138.16°)
OKLaboklab(53.15% -0.1278 0.0958)
OKLCHoklch(53.15% 0.16 143.1)
XYZxyz(8.8217, 16.3654, 4.1325)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8221 #821F80
analogous
#4F821F #1F8221 #1F8253
triadic
#1F8221 #211F82 #82211F
tetradic
#1F8221 #1F4F82 #821F80 #82531F
square
#1F8221 #1F4F82 #821F80 #82531F
split-complementary
#1F8221 #531F82 #821F4F
monochromatic
#071F08 #135114 #1F8221 #2BB32E #48D34B

Accessibility & contrast

On white

4.91
#1F8221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#1F8221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8221
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8221#FFFFFF#000000##FFFFFF
##1F82211.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857510
Deuteranopia (green-blind)
#7A6E2B
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8221;
/* rgb */ color: rgb(31, 130, 33);
/* oklch */ color: oklch(53.2% 0.160 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ca763',
    500: '#1f8221',
    950: '#000000',
  },
}
SCSS
$custom: #1f8221;
$custom-light: #6ca763;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8221",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 121.212,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53151,
    "c": 0.15971,
    "h": 143.1
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#1F8221
secondary
#B548B3
accent
#43E1E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F8221

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

Preview Lab → · Contrast checker → · Palette generator →

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