#217E2A#217E2A

#217E2A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.148 H 144.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#217E2A
RGBrgb(33, 126, 42)
HSLhsl(126, 58%, 31%)
HSVhsv(126, 74%, 49%)
CMYKcmyk(73.8%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.19, -44.43, 36.99)
CIE-LCHlch(46.19, 57.81, 140.22°)
OKLaboklab(52.14% -0.1202 0.086)
OKLCHoklch(52.14% 0.148 144.4)
XYZxyz(8.5054, 15.4113, 4.7165)
Luminance0.1541 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E2A #7E2175
analogous
#467E21 #217E2A #217E58
triadic
#217E2A #2A217E #7E2A21
tetradic
#217E2A #21467E #7E2175 #7E5821
square
#217E2A #21467E #7E2175 #7E5821
split-complementary
#217E2A #58217E #7E2146
monochromatic
#081D0A #144E1A #217E2A #2EAE3A #4AD057

Accessibility & contrast

On white

5.14
#217E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#217E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E2A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E2A#FFFFFF#000000##FFFFFF
##217E2A1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807220
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e2a;
/* rgb */ color: rgb(33, 126, 42);
/* oklch */ color: oklch(52.1% 0.148 144.4);
Tailwind
colors: {
  custom: {
    50: '#6ba467',
    500: '#217e2a',
    950: '#000000',
  },
}
SCSS
$custom: #217e2a;
$custom-light: #6ba467;
$custom-dark: #000000;
JSON
{
  "hex": "#217e2a",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 125.806,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52144,
    "c": 0.14776,
    "h": 144.4
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#217E2A
secondary
#B14AA7
accent
#46D3E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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