#217C1F#217C1F

#217C1F is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.153 H 142.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#217C1F
RGBrgb(33, 124, 31)
HSLhsl(119, 60%, 30%)
HSVhsv(119, 75%, 49%)
CMYKcmyk(73.4%, 0%, 75%, 51.4%)
CIE-LABlab(45.41, -44.83, 40.90)
CIE-LCHlch(45.41, 60.69, 137.62°)
OKLaboklab(51.47% -0.1218 0.0928)
OKLCHoklch(51.47% 0.153 142.7)
XYZxyz(8.0817, 14.8367, 3.7339)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217C1F #7A1F7C
analogous
#4F7C1F #217C1F #1F7C4C
triadic
#217C1F #1F217C #7C1F21
tetradic
#217C1F #1F4F7C #7A1F7C #7C4C1F
square
#217C1F #1F4F7C #7A1F7C #7C4C1F
split-complementary
#217C1F #4C1F7C #7C1F4F
monochromatic
#071A07 #144B13 #217C1F #2EAD2B #48D045

Accessibility & contrast

On white

5.29
#217C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#217C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217C1F
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217C1F#FFFFFF#000000##FFFFFF
##217C1F1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#746929
Tritanopia (blue-blind)
#04786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217c1f;
/* rgb */ color: rgb(33, 124, 31);
/* oklch */ color: oklch(51.5% 0.153 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba361',
    500: '#217c1f',
    950: '#000000',
  },
}
SCSS
$custom: #217c1f;
$custom-light: #6ba361;
$custom-dark: #000000;
JSON
{
  "hex": "#217c1f",
  "rgb": {
    "r": 33,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 118.71,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51465,
    "c": 0.15316,
    "h": 142.7
  },
  "luminance": 0.14838
}

Semantic roles & 50–950 ramp

primary
#217C1F
secondary
#AD48AF
accent
#45E3E0
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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