#217E40#217E40

#217E40 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.128 H 150.1°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#217E40
RGBrgb(33, 126, 64)
HSLhsl(140, 58%, 31%)
HSVhsv(140, 74%, 49%)
CMYKcmyk(73.8%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.46, -41.24, 26.12)
CIE-LCHlch(46.46, 48.82, 147.65°)
OKLaboklab(52.46% -0.111 0.0638)
OKLCHoklch(52.46% 0.128 150.1)
XYZxyz(9.0127, 15.6142, 7.3883)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E40 #7E215F
analogous
#307E21 #217E40 #217E6E
triadic
#217E40 #40217E #7E4021
tetradic
#217E40 #21307E #7E215F #7E6E21
square
#217E40 #21307E #7E215F #7E6E21
split-complementary
#217E40 #6E217E #7E2130
monochromatic
#081D0F #144E27 #217E40 #2EAE59 #4AD076

Accessibility & contrast

On white

5.09
#217E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#217E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E40
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E40#FFFFFF#000000##FFFFFF
##217E401.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#746B44
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217e40;
/* rgb */ color: rgb(33, 126, 64);
/* oklch */ color: oklch(52.5% 0.128 150.1);
Tailwind
colors: {
  custom: {
    50: '#6aa476',
    500: '#217e40',
    950: '#000000',
  },
}
SCSS
$custom: #217e40;
$custom-light: #6aa476;
$custom-dark: #000000;
JSON
{
  "hex": "#217e40",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 140,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.12802,
    "h": 150.1
  },
  "luminance": 0.15615
}

Semantic roles & 50–950 ramp

primary
#217E40
secondary
#B14A8F
accent
#46AEE2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #217E40

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

Preview Lab → · Contrast checker → · Palette generator →

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