#217F20#217F20

#217F20 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.156 H 142.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#217F20
RGBrgb(33, 127, 32)
HSLhsl(119, 60%, 31%)
HSVhsv(119, 75%, 50%)
CMYKcmyk(74%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.45, -45.80, 41.57)
CIE-LCHlch(46.45, 61.85, 137.77°)
OKLaboklab(52.33% -0.1244 0.0944)
OKLCHoklch(52.33% 0.156 142.8)
XYZxyz(8.4768, 15.6054, 3.9316)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F20 #7E207F
analogous
#507F20 #217F20 #207F4E
triadic
#217F20 #20217F #7F2021
tetradic
#217F20 #20507F #7E207F #7F4E20
square
#217F20 #20507F #7E207F #7F4E20
split-complementary
#217F20 #4E207F #7F2050
monochromatic
#081D07 #144E14 #217F20 #2EB02C #4AD148

Accessibility & contrast

On white

5.10
#217F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#217F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F20
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F20#FFFFFF#000000##FFFFFF
##217F201.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#017B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f20;
/* rgb */ color: rgb(33, 127, 32);
/* oklch */ color: oklch(52.3% 0.156 142.8);
Tailwind
colors: {
  custom: {
    50: '#6ca562',
    500: '#217f20',
    950: '#000000',
  },
}
SCSS
$custom: #217f20;
$custom-light: #6ca562;
$custom-dark: #000000;
JSON
{
  "hex": "#217f20",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 119.368,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52332,
    "c": 0.15614,
    "h": 142.8
  },
  "luminance": 0.15606
}

Semantic roles & 50–950 ramp

primary
#217F20
secondary
#B149B2
accent
#45E3E1
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #217F20

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

Preview Lab → · Contrast checker → · Palette generator →

#217F20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva