#217E1B#217E1B

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

Color values

HEX#217E1B
RGBrgb(33, 126, 27)
HSLhsl(116, 65%, 30%)
HSVhsv(116, 79%, 49%)
CMYKcmyk(73.8%, 0%, 78.6%, 50.6%)
CIE-LABlab(46.07, -45.86, 43.08)
CIE-LCHlch(46.07, 62.93, 136.79°)
OKLaboklab(52.01% -0.1248 0.0968)
OKLCHoklch(52.01% 0.158 142.2)
XYZxyz(8.2854, 15.3233, 3.5577)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E1B #781B7E
analogous
#527E1B #217E1B #1B7E47
triadic
#217E1B #1B217E #7E1B21
tetradic
#217E1B #1B527E #781B7E #7E471B
square
#217E1B #1B527E #781B7E #7E471B
split-complementary
#217E1B #471B7E #7E1B52
monochromatic
#071905 #144C10 #217E1B #2EB026 #47D63E

Accessibility & contrast

On white

5.17
#217E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #217E1B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E1B#FFFFFF#000000##FFFFFF
##217E1B1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817205
Deuteranopia (green-blind)
#766A26
Tritanopia (blue-blind)
#047A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e1b;
/* rgb */ color: rgb(33, 126, 27);
/* oklch */ color: oklch(52.0% 0.158 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ca45f',
    500: '#217e1b',
    950: '#000000',
  },
}
SCSS
$custom: #217e1b;
$custom-light: #6ca45f;
$custom-dark: #000000;
JSON
{
  "hex": "#217e1b",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 116.364,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.15796,
    "h": 142.2
  },
  "luminance": 0.15324
}

Semantic roles & 50–950 ramp

primary
#217E1B
secondary
#AB43B2
accent
#40E8DE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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