#217A2F#217A2F

#217A2F is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.138 H 145.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#217A2F
RGBrgb(33, 122, 47)
HSLhsl(129, 57%, 30%)
HSVhsv(129, 73%, 48%)
CMYKcmyk(73%, 0%, 61.5%, 52.2%)
CIE-LABlab(44.87, -42.33, 33.08)
CIE-LCHlch(44.87, 53.73, 141.99°)
OKLaboklab(51.06% -0.1143 0.0781)
OKLCHoklch(51.06% 0.138 145.7)
XYZxyz(8.0993, 14.4467, 5.0504)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217A2F #7A216C
analogous
#407A21 #217A2F #217A5B
triadic
#217A2F #2F217A #7A2F21
tetradic
#217A2F #21407A #7A216C #7A5B21
square
#217A2F #21407A #7A216C #7A5B21
split-complementary
#217A2F #5B217A #7A2140
monochromatic
#071A0A #144A1C #217A2F #2EAA42 #48CD5D

Accessibility & contrast

On white

5.40
#217A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#217A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217A2F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217A2F#FFFFFF#000000##FFFFFF
##217A2F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F27
Deuteranopia (green-blind)
#716735
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #217a2f;
/* rgb */ color: rgb(33, 122, 47);
/* oklch */ color: oklch(51.1% 0.138 145.7);
Tailwind
colors: {
  custom: {
    50: '#6aa16a',
    500: '#217a2f',
    950: '#000000',
  },
}
SCSS
$custom: #217a2f;
$custom-light: #6aa16a;
$custom-dark: #000000;
JSON
{
  "hex": "#217a2f",
  "rgb": {
    "r": 33,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 129.438,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51063,
    "c": 0.13842,
    "h": 145.7
  },
  "luminance": 0.14448
}

Semantic roles & 50–950 ramp

primary
#217A2F
secondary
#AD4A9D
accent
#47C9E1
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #217A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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