#217828#217828

#217828 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.142 H 144.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#217828
RGBrgb(33, 120, 40)
HSLhsl(125, 57%, 30%)
HSVhsv(125, 73%, 47%)
CMYKcmyk(72.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.10, -42.46, 35.60)
CIE-LCHlch(44.10, 55.41, 140.03°)
OKLaboklab(50.41% -0.1149 0.0828)
OKLCHoklch(50.41% 0.142 144.2)
XYZxyz(7.7262, 13.9086, 4.2845)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217828 #782171
analogous
#457821 #217828 #217854
triadic
#217828 #282178 #782821
tetradic
#217828 #214578 #782171 #785421
square
#217828 #214578 #782171 #785421
split-complementary
#217828 #542178 #782145
monochromatic
#071808 #144818 #217828 #2EA838 #47CC52

Accessibility & contrast

On white

5.55
#217828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#217828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217828
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217828#FFFFFF#000000##FFFFFF
##2178281.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D1E
Deuteranopia (green-blind)
#70662F
Tritanopia (blue-blind)
#037567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #217828;
/* rgb */ color: rgb(33, 120, 40);
/* oklch */ color: oklch(50.4% 0.142 144.2);
Tailwind
colors: {
  custom: {
    50: '#6aa066',
    500: '#217828',
    950: '#000000',
  },
}
SCSS
$custom: #217828;
$custom-light: #6aa066;
$custom-dark: #000000;
JSON
{
  "hex": "#217828",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 124.828,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.14165,
    "h": 144.2
  },
  "luminance": 0.13909
}

Semantic roles & 50–950 ramp

primary
#217828
secondary
#AB4AA3
accent
#48D4E0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #217828

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

Preview Lab → · Contrast checker → · Palette generator →

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