#217D40#217D40

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

Color values

HEX#217D40
RGBrgb(33, 125, 64)
HSLhsl(140, 58%, 31%)
HSVhsv(140, 74%, 49%)
CMYKcmyk(73.6%, 0%, 48.8%, 51%)
CIE-LABlab(46.12, -40.85, 25.69)
CIE-LCHlch(46.12, 48.25, 147.83°)
OKLaboklab(52.18% -0.1099 0.0628)
OKLCHoklch(52.18% 0.127 150.3)
XYZxyz(8.8855, 15.3597, 7.3459)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D40 #7D215E
analogous
#307D21 #217D40 #217D6E
triadic
#217D40 #40217D #7D4021
tetradic
#217D40 #21307D #7D215E #7D6E21
square
#217D40 #21307D #7D215E #7D6E21
split-complementary
#217D40 #6E217D #7D2130
monochromatic
#071C0E #144D27 #217D40 #2EAD59 #49CF76

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D40#FFFFFF#000000##FFFFFF
##217D401.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)
#7E723B
Deuteranopia (green-blind)
#736A44
Tritanopia (blue-blind)
#007B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d40;
/* rgb */ color: rgb(33, 125, 64);
/* oklch */ color: oklch(52.2% 0.127 150.3);
Tailwind
colors: {
  custom: {
    50: '#6aa376',
    500: '#217d40',
    950: '#000000',
  },
}
SCSS
$custom: #217d40;
$custom-light: #6aa376;
$custom-dark: #000000;
JSON
{
  "hex": "#217d40",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 140.217,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52175,
    "c": 0.12662,
    "h": 150.3
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#217D40
secondary
#B04A8E
accent
#46ADE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217D40

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

Preview Lab → · Contrast checker → · Palette generator →

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