#217D2B#217D2B

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

Color values

HEX#217D2B
RGBrgb(33, 125, 43)
HSLhsl(127, 58%, 31%)
HSVhsv(127, 74%, 49%)
CMYKcmyk(73.6%, 0%, 65.6%, 51%)
CIE-LABlab(45.86, -43.95, 36.15)
CIE-LCHlch(45.86, 56.91, 140.56°)
OKLaboklab(51.87% -0.1188 0.0843)
OKLCHoklch(51.87% 0.146 144.6)
XYZxyz(8.3963, 15.1641, 4.7695)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D2B #7D2173
analogous
#457D21 #217D2B #217D59
triadic
#217D2B #2B217D #7D2B21
tetradic
#217D2B #21457D #7D2173 #7D5921
square
#217D2B #21457D #7D2173 #7D5921
split-complementary
#217D2B #59217D #7D2145
monochromatic
#071C0A #144D1A #217D2B #2EAD3C #49CF58

Accessibility & contrast

On white

5.21
#217D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#217D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D2B
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D2B#FFFFFF#000000##FFFFFF
##217D2B1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7121
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d2b;
/* rgb */ color: rgb(33, 125, 43);
/* oklch */ color: oklch(51.9% 0.146 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#217d2b',
    950: '#000000',
  },
}
SCSS
$custom: #217d2b;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#217d2b",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 126.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.14568,
    "h": 144.6
  },
  "luminance": 0.15165
}

Semantic roles & 50–950 ramp

primary
#217D2B
secondary
#B04AA5
accent
#46D1E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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