#217D1B#217D1B

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

Color values

HEX#217D1B
RGBrgb(33, 125, 27)
HSLhsl(116, 64%, 30%)
HSVhsv(116, 78%, 49%)
CMYKcmyk(73.6%, 0%, 78.4%, 51%)
CIE-LABlab(45.73, -45.51, 42.74)
CIE-LCHlch(45.73, 62.44, 136.80°)
OKLaboklab(51.72% -0.1239 0.0961)
OKLCHoklch(51.72% 0.157 142.2)
XYZxyz(8.1582, 15.0688, 3.5153)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217D1B #771B7D
analogous
#527D1B #217D1B #1B7D46
triadic
#217D1B #1B217D #7D1B21
tetradic
#217D1B #1B527D #771B7D #7D461B
square
#217D1B #1B527D #771B7D #7D461B
split-complementary
#217D1B #461B7D #7D1B52
monochromatic
#071905 #144B10 #217D1B #2EAF26 #47D53D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##217D1B#FFFFFF#000000##FFFFFF
##217D1B1.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)
#807105
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#05796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #217d1b;
/* rgb */ color: rgb(33, 125, 27);
/* oklch */ color: oklch(51.7% 0.157 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ca45f',
    500: '#217d1b',
    950: '#000000',
  },
}
SCSS
$custom: #217d1b;
$custom-light: #6ca45f;
$custom-dark: #000000;
JSON
{
  "hex": "#217d1b",
  "rgb": {
    "r": 33,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 116.327,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51721,
    "c": 0.15678,
    "h": 142.2
  },
  "luminance": 0.1507
}

Semantic roles & 50–950 ramp

primary
#217D1B
secondary
#AA43B1
accent
#40E7DD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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