#217D38#217D38

#217D38 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.134 H 147.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#217D38
RGBrgb(33, 125, 56)
HSLhsl(135, 58%, 31%)
HSVhsv(135, 74%, 49%)
CMYKcmyk(73.6%, 0%, 55.2%, 51%)
CIE-LABlab(46.01, -42.17, 29.84)
CIE-LCHlch(46.01, 51.66, 144.72°)
OKLaboklab(52.04% -0.1136 0.0717)
OKLCHoklch(52.04% 0.134 147.7)
XYZxyz(8.6740, 15.2751, 6.2319)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D38 #7D2166
analogous
#387D21 #217D38 #217D66
triadic
#217D38 #38217D #7D3821
tetradic
#217D38 #21387D #7D2166 #7D6621
square
#217D38 #21387D #7D2166 #7D6621
split-complementary
#217D38 #66217D #7D2138
monochromatic
#071C0D #144D22 #217D38 #2EAD4E #49CF6B

Accessibility & contrast

On white

5.18
#217D38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#217D38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D38
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D38#FFFFFF#000000##FFFFFF
##217D381.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7232
Deuteranopia (green-blind)
#746A3D
Tritanopia (blue-blind)
#007A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217d38;
/* rgb */ color: rgb(33, 125, 56);
/* oklch */ color: oklch(52.0% 0.134 147.7);
Tailwind
colors: {
  custom: {
    50: '#6aa470',
    500: '#217d38',
    950: '#000000',
  },
}
SCSS
$custom: #217d38;
$custom-light: #6aa470;
$custom-dark: #000000;
JSON
{
  "hex": "#217d38",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 56
  },
  "hsl": {
    "h": 135,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52043,
    "c": 0.1343,
    "h": 147.7
  },
  "luminance": 0.15276
}

Semantic roles & 50–950 ramp

primary
#217D38
secondary
#B04A96
accent
#46BBE1
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217D38

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

Preview Lab → · Contrast checker → · Palette generator →

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