#217D2C#217D2C

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

Color values

HEX#217D2C
RGBrgb(33, 125, 44)
HSLhsl(127, 58%, 31%)
HSVhsv(127, 74%, 49%)
CMYKcmyk(73.6%, 0%, 64.8%, 51%)
CIE-LABlab(45.87, -43.83, 35.69)
CIE-LCHlch(45.87, 56.52, 140.84°)
OKLaboklab(51.88% -0.1184 0.0834)
OKLCHoklch(51.88% 0.145 144.8)
XYZxyz(8.4149, 15.1715, 4.8673)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D2C #7D2172
analogous
#447D21 #217D2C #217D5A
triadic
#217D2C #2C217D #7D2C21
tetradic
#217D2C #21447D #7D2172 #7D5A21
square
#217D2C #21447D #7D2172 #7D5A21
split-complementary
#217D2C #5A217D #7D2144
monochromatic
#071C0A #144D1B #217D2C #2EAD3D #49CF59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D2C#FFFFFF#000000##FFFFFF
##217D2C1.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)
#7F7123
Deuteranopia (green-blind)
#756A33
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d2c;
/* rgb */ color: rgb(33, 125, 44);
/* oklch */ color: oklch(51.9% 0.145 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#217d2c',
    950: '#000000',
  },
}
SCSS
$custom: #217d2c;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#217d2c",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 127.174,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.14487,
    "h": 144.8
  },
  "luminance": 0.15172
}

Semantic roles & 50–950 ramp

primary
#217D2C
secondary
#B04AA4
accent
#46CFE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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