#217A40#217A40

#217A40 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.122 H 150.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#217A40
RGBrgb(33, 122, 64)
HSLhsl(141, 57%, 30%)
HSVhsv(141, 73%, 48%)
CMYKcmyk(73%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.10, -39.66, 24.38)
CIE-LCHlch(45.10, 46.55, 148.41°)
OKLaboklab(51.33% -0.1068 0.0598)
OKLCHoklch(51.33% 0.122 150.7)
XYZxyz(8.5114, 14.6116, 7.2213)
Luminance0.1461 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217A40 #7A215B
analogous
#2E7A21 #217A40 #217A6C
triadic
#217A40 #40217A #7A4021
tetradic
#217A40 #212E7A #7A215B #7A6C21
square
#217A40 #212E7A #7A215B #7A6C21
split-complementary
#217A40 #6C217A #7A212E
monochromatic
#071A0D #144A27 #217A40 #2EAA59 #48CD76

Accessibility & contrast

On white

5.35
#217A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#217A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217A40
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217A40#FFFFFF#000000##FFFFFF
##217A401.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F3C
Deuteranopia (green-blind)
#706844
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217a40;
/* rgb */ color: rgb(33, 122, 64);
/* oklch */ color: oklch(51.3% 0.122 150.7);
Tailwind
colors: {
  custom: {
    50: '#6aa176',
    500: '#217a40',
    950: '#000000',
  },
}
SCSS
$custom: #217a40;
$custom-light: #6aa176;
$custom-dark: #000000;
JSON
{
  "hex": "#217a40",
  "rgb": {
    "r": 33,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 140.899,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51328,
    "c": 0.1224,
    "h": 150.7
  },
  "luminance": 0.14613
}

Semantic roles & 50–950 ramp

primary
#217A40
secondary
#AD4A8A
accent
#47ABE1
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217A40

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

Preview Lab → · Contrast checker → · Palette generator →

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