#21971B#21971B

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

Color values

HEX#21971B
RGBrgb(33, 151, 27)
HSLhsl(117, 70%, 35%)
HSVhsv(117, 82%, 59%)
CMYKcmyk(78.1%, 0%, 82.1%, 40.8%)
CIE-LABlab(54.59, -54.19, 51.25)
CIE-LCHlch(54.59, 74.59, 136.60°)
OKLaboklab(59.08% -0.1474 0.1139)
OKLCHoklch(59.08% 0.186 142.3)
XYZxyz(11.8909, 22.5343, 4.7596)
Luminance0.2254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21971B #911B97
analogous
#5F971B #21971B #1B9753
triadic
#21971B #1B2197 #971B21
tetradic
#21971B #1B5F97 #911B97 #97531B
square
#21971B #1B5F97 #911B97 #97531B
split-complementary
#21971B #531B97 #971B5F
monochromatic
#0A2F08 #166312 #21971B #2CCB24 #54DF4D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21971B#FFFFFF#000000##000000
##21971B1.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)
#9B8800
Deuteranopia (green-blind)
#8E7F2B
Tritanopia (blue-blind)
#009280
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #21971b;
/* rgb */ color: rgb(33, 151, 27);
/* oklch */ color: oklch(59.1% 0.186 142.3);
Tailwind
colors: {
  custom: {
    50: '#72b763',
    500: '#21971b',
    950: '#000000',
  },
}
SCSS
$custom: #21971b;
$custom-light: #72b763;
$custom-dark: #000000;
JSON
{
  "hex": "#21971b",
  "rgb": {
    "r": 33,
    "g": 151,
    "b": 27
  },
  "hsl": {
    "h": 117.097,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59084,
    "c": 0.18622,
    "h": 142.3
  },
  "luminance": 0.22536
}

Semantic roles & 50–950 ramp

primary
#21971B
secondary
#BC4CC1
accent
#3BECE4
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #21971B

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

Preview Lab → · Contrast checker → · Palette generator →

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