#217E2F#217E2F

#217E2F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.144 H 145.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#217E2F
RGBrgb(33, 126, 47)
HSLhsl(129, 58%, 31%)
HSVhsv(129, 74%, 49%)
CMYKcmyk(73.8%, 0%, 62.7%, 50.6%)
CIE-LABlab(46.24, -43.82, 34.67)
CIE-LCHlch(46.24, 55.88, 141.64°)
OKLaboklab(52.2% -0.1183 0.0815)
OKLCHoklch(52.2% 0.144 145.4)
XYZxyz(8.6006, 15.4493, 5.2175)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E2F #7E2170
analogous
#417E21 #217E2F #217E5D
triadic
#217E2F #2F217E #7E2F21
tetradic
#217E2F #21417E #7E2170 #7E5D21
square
#217E2F #21417E #7E2170 #7E5D21
split-complementary
#217E2F #5D217E #7E2141
monochromatic
#081D0B #144E1D #217E2F #2EAE41 #4AD05E

Accessibility & contrast

On white

5.13
#217E2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#217E2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E2F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E2F#FFFFFF#000000##FFFFFF
##217E2F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807226
Deuteranopia (green-blind)
#756B36
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217e2f;
/* rgb */ color: rgb(33, 126, 47);
/* oklch */ color: oklch(52.2% 0.144 145.4);
Tailwind
colors: {
  custom: {
    50: '#6ba46a',
    500: '#217e2f',
    950: '#000000',
  },
}
SCSS
$custom: #217e2f;
$custom-light: #6ba46a;
$custom-dark: #000000;
JSON
{
  "hex": "#217e2f",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 129.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52203,
    "c": 0.14367,
    "h": 145.4
  },
  "luminance": 0.1545
}

Semantic roles & 50–950 ramp

primary
#217E2F
secondary
#B14AA1
accent
#46CAE2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #217E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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