#217D42#217D42

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

Color values

HEX#217D42
RGBrgb(33, 125, 66)
HSLhsl(142, 58%, 31%)
HSVhsv(142, 74%, 49%)
CMYKcmyk(73.6%, 0%, 47.2%, 51%)
CIE-LABlab(46.15, -40.49, 24.63)
CIE-LCHlch(46.15, 47.39, 148.69°)
OKLaboklab(52.21% -0.109 0.0605)
OKLCHoklch(52.21% 0.125 151)
XYZxyz(8.9434, 15.3829, 7.6511)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D42 #7D215C
analogous
#2E7D21 #217D42 #217D70
triadic
#217D42 #42217D #7D4221
tetradic
#217D42 #212E7D #7D215C #7D7021
square
#217D42 #212E7D #7D215C #7D7021
split-complementary
#217D42 #70217D #7D212E
monochromatic
#071C0F #144D28 #217D42 #2EAD5C #49CF79

Accessibility & contrast

On white

5.15
#217D42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#217D42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D42
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D42#FFFFFF#000000##FFFFFF
##217D421.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723D
Deuteranopia (green-blind)
#726A46
Tritanopia (blue-blind)
#007B6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d42;
/* rgb */ color: rgb(33, 125, 66);
/* oklch */ color: oklch(52.2% 0.125 151.0);
Tailwind
colors: {
  custom: {
    50: '#6aa377',
    500: '#217d42',
    950: '#000000',
  },
}
SCSS
$custom: #217d42;
$custom-light: #6aa377;
$custom-dark: #000000;
JSON
{
  "hex": "#217d42",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 141.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52211,
    "c": 0.12465,
    "h": 151
  },
  "luminance": 0.15384
}

Semantic roles & 50–950 ramp

primary
#217D42
secondary
#B04A8B
accent
#46AAE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #217D42

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

Preview Lab → · Contrast checker → · Palette generator →

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