#217F21#217F21

#217F21 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.155 H 143.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#217F21
RGBrgb(33, 127, 33)
HSLhsl(120, 59%, 31%)
HSVhsv(120, 74%, 50%)
CMYKcmyk(74%, 0%, 74%, 50.2%)
CIE-LABlab(46.46, -45.71, 41.18)
CIE-LCHlch(46.46, 61.52, 137.98°)
OKLaboklab(52.34% -0.1241 0.0937)
OKLCHoklch(52.34% 0.155 143)
XYZxyz(8.4906, 15.6109, 4.0043)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F21 #7F217F
analogous
#507F21 #217F21 #217F50
triadic
#217F21 #21217F #7F2121
tetradic
#217F21 #21507F #7F217F #7F5021
square
#217F21 #21507F #7F217F #7F5021
split-complementary
#217F21 #50217F #7F2150
monochromatic
#081E08 #144E14 #217F21 #2EB02E #4AD04A

Accessibility & contrast

On white

5.09
#217F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#217F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F21#FFFFFF#000000##FFFFFF
##217F211.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f21;
/* rgb */ color: rgb(33, 127, 33);
/* oklch */ color: oklch(52.3% 0.155 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ca562',
    500: '#217f21',
    950: '#000000',
  },
}
SCSS
$custom: #217f21;
$custom-light: #6ca562;
$custom-dark: #000000;
JSON
{
  "hex": "#217f21",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 120,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.15549,
    "h": 143
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#217F21
secondary
#B24AB2
accent
#46E2E2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #217F21

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

Preview Lab → · Contrast checker → · Palette generator →

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