#217E21#217E21

#217E21 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.154 H 143.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#217E21
RGBrgb(33, 126, 33)
HSLhsl(120, 58%, 31%)
HSVhsv(120, 74%, 49%)
CMYKcmyk(73.8%, 0%, 73.8%, 50.6%)
CIE-LABlab(46.12, -45.36, 40.82)
CIE-LCHlch(46.12, 61.02, 138.01°)
OKLaboklab(52.05% -0.1231 0.0929)
OKLCHoklch(52.05% 0.154 143)
XYZxyz(8.3621, 15.3539, 3.9615)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E21 #7E217E
analogous
#4F7E21 #217E21 #217E4F
triadic
#217E21 #21217E #7E2121
tetradic
#217E21 #214F7E #7E217E #7E4F21
square
#217E21 #214F7E #7E217E #7E4F21
split-complementary
#217E21 #4F217E #7E214F
monochromatic
#081D08 #144E14 #217E21 #2EAE2E #4AD04A

Accessibility & contrast

On white

5.16
#217E21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#217E21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E21
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E21#FFFFFF#000000##FFFFFF
##217E211.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#017A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e21;
/* rgb */ color: rgb(33, 126, 33);
/* oklch */ color: oklch(52.1% 0.154 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca462',
    500: '#217e21',
    950: '#000000',
  },
}
SCSS
$custom: #217e21;
$custom-light: #6ca462;
$custom-dark: #000000;
JSON
{
  "hex": "#217e21",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 120,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52055,
    "c": 0.15428,
    "h": 143
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#217E21
secondary
#B14AB1
accent
#46E2E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #217E21

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

Preview Lab → · Contrast checker → · Palette generator →

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