#217D31#217D31

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

Color values

HEX#217D31
RGBrgb(33, 125, 49)
HSLhsl(130, 58%, 31%)
HSVhsv(130, 74%, 49%)
CMYKcmyk(73.6%, 0%, 60.8%, 51%)
CIE-LABlab(45.92, -43.18, 33.32)
CIE-LCHlch(45.92, 54.54, 142.35°)
OKLaboklab(51.94% -0.1165 0.0788)
OKLCHoklch(51.94% 0.141 145.9)
XYZxyz(8.5146, 15.2114, 5.3925)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D31 #7D216D
analogous
#3F7D21 #217D31 #217D5F
triadic
#217D31 #31217D #7D3121
tetradic
#217D31 #213F7D #7D216D #7D5F21
square
#217D31 #213F7D #7D216D #7D5F21
split-complementary
#217D31 #5F217D #7D213F
monochromatic
#071C0B #144D1E #217D31 #2EAD44 #49CF61

Accessibility & contrast

On white

5.19
#217D31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #217D31
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D31#FFFFFF#000000##FFFFFF
##217D311.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #217d31;
/* rgb */ color: rgb(33, 125, 49);
/* oklch */ color: oklch(51.9% 0.141 145.9);
Tailwind
colors: {
  custom: {
    50: '#6ba46c',
    500: '#217d31',
    950: '#000000',
  },
}
SCSS
$custom: #217d31;
$custom-light: #6ba46c;
$custom-dark: #000000;
JSON
{
  "hex": "#217d31",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 130.435,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51944,
    "c": 0.14064,
    "h": 145.9
  },
  "luminance": 0.15212
}

Semantic roles & 50–950 ramp

primary
#217D31
secondary
#B04A9E
accent
#46C6E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217D31

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

Preview Lab → · Contrast checker → · Palette generator →

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