#217D1C#217D1C

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

Color values

HEX#217D1C
RGBrgb(33, 125, 28)
HSLhsl(117, 63%, 30%)
HSVhsv(117, 78%, 49%)
CMYKcmyk(73.6%, 0%, 77.6%, 51%)
CIE-LABlab(45.73, -45.43, 42.38)
CIE-LCHlch(45.73, 62.13, 136.99°)
OKLaboklab(51.73% -0.1236 0.0955)
OKLCHoklch(51.73% 0.156 142.3)
XYZxyz(8.1699, 15.0735, 3.5773)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D1C #781C7D
analogous
#527D1C #217D1C #1C7D47
triadic
#217D1C #1C217D #7D1C21
tetradic
#217D1C #1C527D #781C7D #7D471C
square
#217D1C #1C527D #781C7D #7D471C
split-complementary
#217D1C #471C7D #7D1C52
monochromatic
#071906 #144B11 #217D1C #2EAF27 #47D43F

Accessibility & contrast

On white

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

On black

4.01
#217D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##217D1C#FFFFFF#000000##FFFFFF
##217D1C1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #217d1c;
/* rgb */ color: rgb(33, 125, 28);
/* oklch */ color: oklch(51.7% 0.156 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ca45f',
    500: '#217d1c',
    950: '#000000',
  },
}
SCSS
$custom: #217d1c;
$custom-light: #6ca45f;
$custom-dark: #000000;
JSON
{
  "hex": "#217d1c",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 116.907,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.51728,
    "c": 0.1562,
    "h": 142.3
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#217D1C
secondary
#AB44B1
accent
#41E6DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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