#217D2E#217D2E

#217D2E is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.143 H 145.3°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#217D2E
RGBrgb(33, 125, 46)
HSLhsl(128, 58%, 31%)
HSVhsv(128, 74%, 49%)
CMYKcmyk(73.6%, 0%, 63.2%, 51%)
CIE-LABlab(45.89, -43.58, 34.75)
CIE-LCHlch(45.89, 55.74, 141.43°)
OKLaboklab(51.91% -0.1177 0.0816)
OKLCHoklch(51.91% 0.143 145.3)
XYZxyz(8.4534, 15.1869, 5.0701)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D2E #7D2170
analogous
#427D21 #217D2E #217D5C
triadic
#217D2E #2E217D #7D2E21
tetradic
#217D2E #21427D #7D2170 #7D5C21
square
#217D2E #21427D #7D2170 #7D5C21
split-complementary
#217D2E #5C217D #7D2142
monochromatic
#071C0A #144D1C #217D2E #2EAD40 #49CF5C

Accessibility & contrast

On white

5.20
#217D2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#217D2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D2E
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D2E#FFFFFF#000000##FFFFFF
##217D2E1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7125
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d2e;
/* rgb */ color: rgb(33, 125, 46);
/* oklch */ color: oklch(51.9% 0.143 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ba46a',
    500: '#217d2e',
    950: '#000000',
  },
}
SCSS
$custom: #217d2e;
$custom-light: #6ba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#217d2e",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 128.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51906,
    "c": 0.14322,
    "h": 145.3
  },
  "luminance": 0.15188
}

Semantic roles & 50–950 ramp

primary
#217D2E
secondary
#B04AA1
accent
#46CCE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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