#21971F#21971F

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

Color values

HEX#21971F
RGBrgb(33, 151, 31)
HSLhsl(119, 66%, 36%)
HSVhsv(119, 79%, 59%)
CMYKcmyk(78.1%, 0%, 79.5%, 40.8%)
CIE-LABlab(54.61, -53.94, 50.03)
CIE-LCHlch(54.61, 73.56, 137.15°)
OKLaboklab(59.11% -0.1465 0.1119)
OKLCHoklch(59.11% 0.184 142.6)
XYZxyz(11.9404, 22.5541, 5.0201)
Luminance0.2256 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21971F #951F97
analogous
#5D971F #21971F #1F9759
triadic
#21971F #1F2197 #971F21
tetradic
#21971F #1F5D97 #951F97 #97591F
square
#21971F #1F5D97 #951F97 #97591F
split-complementary
#21971F #591F97 #971F5D
monochromatic
#0B310A #166415 #21971F #2CCA29 #57DC54

Accessibility & contrast

On white

3.81
#21971F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#21971F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##21971F#FFFFFF#000000##000000
##21971F1.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)
#9A8800
Deuteranopia (green-blind)
#8E7F2D
Tritanopia (blue-blind)
#009281
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #21971f;
/* rgb */ color: rgb(33, 151, 31);
/* oklch */ color: oklch(59.1% 0.184 142.6);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#21971f',
    950: '#000000',
  },
}
SCSS
$custom: #21971f;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#21971f",
  "rgb": {
    "r": 33,
    "g": 151,
    "b": 31
  },
  "hsl": {
    "h": 119,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59108,
    "c": 0.18431,
    "h": 142.6
  },
  "luminance": 0.22555
}

Semantic roles & 50–950 ramp

primary
#21971F
secondary
#BE52BF
accent
#3FE9E6
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #21971F

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

Preview Lab → · Contrast checker → · Palette generator →

#21971F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva