#217D1F#217D1F

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

Color values

HEX#217D1F
RGBrgb(33, 125, 31)
HSLhsl(119, 60%, 31%)
HSVhsv(119, 75%, 49%)
CMYKcmyk(73.6%, 0%, 75.2%, 51%)
CIE-LABlab(45.76, -45.18, 41.25)
CIE-LCHlch(45.76, 61.18, 137.60°)
OKLaboklab(51.75% -0.1228 0.0936)
OKLCHoklch(51.75% 0.154 142.7)
XYZxyz(8.2076, 15.0886, 3.7759)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D1F #7B1F7D
analogous
#507D1F #217D1F #1F7D4C
triadic
#217D1F #1F217D #7D1F21
tetradic
#217D1F #1F507D #7B1F7D #7D4C1F
square
#217D1F #1F507D #7B1F7D #7D4C1F
split-complementary
#217D1F #4C1F7D #7D1F50
monochromatic
#071B07 #144C13 #217D1F #2EAE2B #48D145

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D1F#FFFFFF#000000##FFFFFF
##217D1F1.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)
#80710E
Deuteranopia (green-blind)
#756A29
Tritanopia (blue-blind)
#03796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217d1f;
/* rgb */ color: rgb(33, 125, 31);
/* oklch */ color: oklch(51.8% 0.154 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ca461',
    500: '#217d1f',
    950: '#000000',
  },
}
SCSS
$custom: #217d1f;
$custom-light: #6ca461;
$custom-dark: #000000;
JSON
{
  "hex": "#217d1f",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 118.723,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51752,
    "c": 0.15436,
    "h": 142.7
  },
  "luminance": 0.15089
}

Semantic roles & 50–950 ramp

primary
#217D1F
secondary
#AE48B0
accent
#44E3E0
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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