#217D2F#217D2F

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

Color values

HEX#217D2F
RGBrgb(33, 125, 47)
HSLhsl(129, 58%, 31%)
HSVhsv(129, 74%, 49%)
CMYKcmyk(73.6%, 0%, 62.4%, 51%)
CIE-LABlab(45.90, -43.45, 34.28)
CIE-LCHlch(45.90, 55.34, 141.73°)
OKLaboklab(51.92% -0.1173 0.0807)
OKLCHoklch(51.92% 0.142 145.5)
XYZxyz(8.4733, 15.1949, 5.1751)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D2F #7D216F
analogous
#417D21 #217D2F #217D5D
triadic
#217D2F #2F217D #7D2F21
tetradic
#217D2F #21417D #7D216F #7D5D21
square
#217D2F #21417D #7D216F #7D5D21
split-complementary
#217D2F #5D217D #7D2141
monochromatic
#071C0B #144D1D #217D2F #2EAD41 #49CF5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D2F#FFFFFF#000000##FFFFFF
##217D2F1.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)
#7F7127
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d2f;
/* rgb */ color: rgb(33, 125, 47);
/* oklch */ color: oklch(51.9% 0.142 145.5);
Tailwind
colors: {
  custom: {
    50: '#6ba46a',
    500: '#217d2f',
    950: '#000000',
  },
}
SCSS
$custom: #217d2f;
$custom-light: #6ba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#217d2f",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 129.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51918,
    "c": 0.14237,
    "h": 145.5
  },
  "luminance": 0.15196
}

Semantic roles & 50–950 ramp

primary
#217D2F
secondary
#B04AA0
accent
#46CAE1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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