#217B2F#217B2F

#217B2F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.140 H 145.6°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#217B2F
RGBrgb(33, 123, 47)
HSLhsl(129, 58%, 31%)
HSVhsv(129, 73%, 48%)
CMYKcmyk(73.2%, 0%, 61.8%, 51.8%)
CIE-LABlab(45.21, -42.71, 33.48)
CIE-LCHlch(45.21, 54.27, 141.90°)
OKLaboklab(51.35% -0.1153 0.079)
OKLCHoklch(51.35% 0.14 145.6)
XYZxyz(8.2227, 14.6936, 5.0916)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B2F #7B216D
analogous
#407B21 #217B2F #217B5C
triadic
#217B2F #2F217B #7B2F21
tetradic
#217B2F #21407B #7B216D #7B5C21
square
#217B2F #21407B #7B216D #7B5C21
split-complementary
#217B2F #5C217B #7B2140
monochromatic
#071A0A #144B1D #217B2F #2EAB41 #48CE5D

Accessibility & contrast

On white

5.33
#217B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#217B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B2F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B2F#FFFFFF#000000##FFFFFF
##217B2F1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b2f;
/* rgb */ color: rgb(33, 123, 47);
/* oklch */ color: oklch(51.3% 0.140 145.6);
Tailwind
colors: {
  custom: {
    50: '#6aa26a',
    500: '#217b2f',
    950: '#000000',
  },
}
SCSS
$custom: #217b2f;
$custom-light: #6aa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#217b2f",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 129.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51348,
    "c": 0.13974,
    "h": 145.6
  },
  "luminance": 0.14694
}

Semantic roles & 50–950 ramp

primary
#217B2F
secondary
#AE4A9E
accent
#47C9E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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