#217D2A#217D2A

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

Color values

HEX#217D2A
RGBrgb(33, 125, 42)
HSLhsl(126, 58%, 31%)
HSVhsv(126, 74%, 49%)
CMYKcmyk(73.6%, 0%, 66.4%, 51%)
CIE-LABlab(45.85, -44.06, 36.61)
CIE-LCHlch(45.85, 57.29, 140.28°)
OKLaboklab(51.86% -0.1192 0.0852)
OKLCHoklch(51.86% 0.146 144.5)
XYZxyz(8.3782, 15.1568, 4.6741)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D2A #7D2174
analogous
#467D21 #217D2A #217D58
triadic
#217D2A #2A217D #7D2A21
tetradic
#217D2A #21467D #7D2174 #7D5821
square
#217D2A #21467D #7D2174 #7D5821
split-complementary
#217D2A #58217D #7D2146
monochromatic
#071C09 #144D1A #217D2A #2EAD3A #49CF56

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D2A#FFFFFF#000000##FFFFFF
##217D2A1.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)
#7F7120
Deuteranopia (green-blind)
#756A31
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d2a;
/* rgb */ color: rgb(33, 125, 42);
/* oklch */ color: oklch(51.9% 0.146 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ba467',
    500: '#217d2a',
    950: '#000000',
  },
}
SCSS
$custom: #217d2a;
$custom-light: #6ba467;
$custom-dark: #000000;
JSON
{
  "hex": "#217d2a",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 125.87,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51858,
    "c": 0.14648,
    "h": 144.5
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#217D2A
secondary
#B04AA6
accent
#46D2E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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