#217C1B#217C1B

#217C1B is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.156 H 142.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#217C1B
RGBrgb(33, 124, 27)
HSLhsl(116, 64%, 30%)
HSVhsv(116, 78%, 49%)
CMYKcmyk(73.4%, 0%, 78.2%, 51.4%)
CIE-LABlab(45.38, -45.16, 42.40)
CIE-LCHlch(45.38, 61.95, 136.81°)
OKLaboklab(51.43% -0.1229 0.0954)
OKLCHoklch(51.43% 0.156 142.2)
XYZxyz(8.0322, 14.8169, 3.4733)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217C1B #761B7C
analogous
#517C1B #217C1B #1B7C46
triadic
#217C1B #1B217C #7C1B21
tetradic
#217C1B #1B517C #761B7C #7C461B
square
#217C1B #1B517C #761B7C #7C461B
split-complementary
#217C1B #461B7C #7C1B51
monochromatic
#071905 #144A10 #217C1B #2EAE26 #46D53D

Accessibility & contrast

On white

5.30
#217C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#217C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217C1B
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217C1B#FFFFFF#000000##FFFFFF
##217C1B1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7006
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#05786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217c1b;
/* rgb */ color: rgb(33, 124, 27);
/* oklch */ color: oklch(51.4% 0.156 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ca35f',
    500: '#217c1b',
    950: '#000000',
  },
}
SCSS
$custom: #217c1b;
$custom-light: #6ca35f;
$custom-dark: #000000;
JSON
{
  "hex": "#217c1b",
  "rgb": {
    "r": 33,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 116.289,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51433,
    "c": 0.15559,
    "h": 142.2
  },
  "luminance": 0.14818
}

Semantic roles & 50–950 ramp

primary
#217C1B
secondary
#A943B0
accent
#41E7DD
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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