#217D21#217D21

#217D21 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.153 H 143.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#217D21
RGBrgb(33, 125, 33)
HSLhsl(120, 58%, 31%)
HSVhsv(120, 74%, 49%)
CMYKcmyk(73.6%, 0%, 73.6%, 51%)
CIE-LABlab(45.77, -45.01, 40.47)
CIE-LCHlch(45.77, 60.52, 138.04°)
OKLaboklab(51.77% -0.1222 0.0922)
OKLCHoklch(51.77% 0.153 143)
XYZxyz(8.2348, 15.0995, 3.9190)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D21 #7D217D
analogous
#4F7D21 #217D21 #217D4F
triadic
#217D21 #21217D #7D2121
tetradic
#217D21 #214F7D #7D217D #7D4F21
square
#217D21 #214F7D #7D217D #7D4F21
split-complementary
#217D21 #4F217D #7D214F
monochromatic
#071C07 #144D14 #217D21 #2EAD2E #49CF49

Accessibility & contrast

On white

5.22
#217D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#217D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D21
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D21#FFFFFF#000000##FFFFFF
##217D211.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#756A2A
Tritanopia (blue-blind)
#02796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217d21;
/* rgb */ color: rgb(33, 125, 33);
/* oklch */ color: oklch(51.8% 0.153 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca462',
    500: '#217d21',
    950: '#000000',
  },
}
SCSS
$custom: #217d21;
$custom-light: #6ca462;
$custom-dark: #000000;
JSON
{
  "hex": "#217d21",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 120,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51769,
    "c": 0.15306,
    "h": 143
  },
  "luminance": 0.151
}

Semantic roles & 50–950 ramp

primary
#217D21
secondary
#B04AB0
accent
#46E1E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #217D21

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

Preview Lab → · Contrast checker → · Palette generator →

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