#217D1D#217D1D

#217D1D is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.156 H 142.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#217D1D
RGBrgb(33, 125, 29)
HSLhsl(118, 62%, 30%)
HSVhsv(118, 77%, 49%)
CMYKcmyk(73.6%, 0%, 76.8%, 51%)
CIE-LABlab(45.74, -45.35, 42.01)
CIE-LCHlch(45.74, 61.82, 137.19°)
OKLaboklab(51.74% -0.1233 0.0949)
OKLCHoklch(51.74% 0.156 142.4)
XYZxyz(8.1821, 15.0784, 3.6414)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D1D #791D7D
analogous
#517D1D #217D1D #1D7D49
triadic
#217D1D #1D217D #7D1D21
tetradic
#217D1D #1D517D #791D7D #7D491D
square
#217D1D #1D517D #791D7D #7D491D
split-complementary
#217D1D #491D7D #7D1D51
monochromatic
#071A06 #144B11 #217D1D #2EAF29 #47D341

Accessibility & contrast

On white

5.23
#217D1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#217D1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217D1D
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217D1D#FFFFFF#000000##FFFFFF
##217D1D1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710A
Deuteranopia (green-blind)
#756A27
Tritanopia (blue-blind)
#04796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217d1d;
/* rgb */ color: rgb(33, 125, 29);
/* oklch */ color: oklch(51.7% 0.156 142.4);
Tailwind
colors: {
  custom: {
    50: '#6ca460',
    500: '#217d1d',
    950: '#000000',
  },
}
SCSS
$custom: #217d1d;
$custom-light: #6ca460;
$custom-dark: #000000;
JSON
{
  "hex": "#217d1d",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 117.5,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51736,
    "c": 0.15561,
    "h": 142.4
  },
  "luminance": 0.15079
}

Semantic roles & 50–950 ramp

primary
#217D1D
secondary
#AC45B1
accent
#42E5DF
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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