#217B40#217B40

#217B40 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.124 H 150.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#217B40
RGBrgb(33, 123, 64)
HSLhsl(141, 58%, 31%)
HSVhsv(141, 73%, 48%)
CMYKcmyk(73.2%, 0%, 48%, 51.8%)
CIE-LABlab(45.44, -40.05, 24.82)
CIE-LCHlch(45.44, 47.12, 148.21°)
OKLaboklab(51.61% -0.1078 0.0608)
OKLCHoklch(51.61% 0.124 150.6)
XYZxyz(8.6349, 14.8585, 7.2624)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B40 #7B215C
analogous
#2F7B21 #217B40 #217B6D
triadic
#217B40 #40217B #7B4021
tetradic
#217B40 #212F7B #7B215C #7B6D21
square
#217B40 #212F7B #7B215C #7B6D21
split-complementary
#217B40 #6D217B #7B212F
monochromatic
#071A0E #144B27 #217B40 #2EAB59 #48CE76

Accessibility & contrast

On white

5.29
#217B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#217B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B40
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B40#FFFFFF#000000##FFFFFF
##217B401.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C703B
Deuteranopia (green-blind)
#716944
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217b40;
/* rgb */ color: rgb(33, 123, 64);
/* oklch */ color: oklch(51.6% 0.124 150.6);
Tailwind
colors: {
  custom: {
    50: '#6aa276',
    500: '#217b40',
    950: '#000000',
  },
}
SCSS
$custom: #217b40;
$custom-light: #6aa276;
$custom-dark: #000000;
JSON
{
  "hex": "#217b40",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 140.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51611,
    "c": 0.12381,
    "h": 150.6
  },
  "luminance": 0.14859
}

Semantic roles & 50–950 ramp

primary
#217B40
secondary
#AE4A8B
accent
#47ACE1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217B40

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

Preview Lab → · Contrast checker → · Palette generator →

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