#217821#217821

#217821 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.3% C 0.147 H 143.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#217821
RGBrgb(33, 120, 33)
HSLhsl(120, 57%, 30%)
HSVhsv(120, 73%, 47%)
CMYKcmyk(72.5%, 0%, 72.5%, 52.9%)
CIE-LABlab(44.04, -43.21, 38.66)
CIE-LCHlch(44.04, 57.98, 138.19°)
OKLaboklab(50.33% -0.1173 0.0884)
OKLCHoklch(50.33% 0.147 143)
XYZxyz(7.6177, 13.8653, 3.7133)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217821 #782178
analogous
#4D7821 #217821 #21784D
triadic
#217821 #212178 #782121
tetradic
#217821 #214C78 #782178 #784D21
square
#217821 #214C78 #782178 #784D21
split-complementary
#217821 #4C2178 #78214D
monochromatic
#071807 #144814 #217821 #2EA82E #47CC47

Accessibility & contrast

On white

5.57
#217821 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#217821 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217821
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217821#FFFFFF#000000##FFFFFF
##2178211.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C14
Deuteranopia (green-blind)
#716529
Tritanopia (blue-blind)
#067467
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #217821;
/* rgb */ color: rgb(33, 120, 33);
/* oklch */ color: oklch(50.3% 0.147 143.0);
Tailwind
colors: {
  custom: {
    50: '#6aa061',
    500: '#217821',
    950: '#000000',
  },
}
SCSS
$custom: #217821;
$custom-light: #6aa061;
$custom-dark: #000000;
JSON
{
  "hex": "#217821",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 33
  },
  "hsl": {
    "h": 120,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50333,
    "c": 0.1469,
    "h": 143
  },
  "luminance": 0.13866
}

Semantic roles & 50–950 ramp

primary
#217821
secondary
#AB4AAB
accent
#48E0E0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #217821

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

Preview Lab → · Contrast checker → · Palette generator →

#217821 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva