#217E1F#217E1F

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

Color values

HEX#217E1F
RGBrgb(33, 126, 31)
HSLhsl(119, 61%, 31%)
HSVhsv(119, 75%, 49%)
CMYKcmyk(73.8%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.10, -45.54, 41.61)
CIE-LCHlch(46.10, 61.68, 137.58°)
OKLaboklab(52.04% -0.1237 0.0943)
OKLCHoklch(52.04% 0.156 142.7)
XYZxyz(8.3349, 15.3431, 3.8183)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E1F #7C1F7E
analogous
#507E1F #217E1F #1F7E4C
triadic
#217E1F #1F217E #7E1F21
tetradic
#217E1F #1F507E #7C1F7E #7E4C1F
square
#217E1F #1F507E #7C1F7E #7E4C1F
split-complementary
#217E1F #4C1F7E #7E1F50
monochromatic
#071C07 #144D13 #217E1F #2EAF2B #49D146

Accessibility & contrast

On white

5.16
#217E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#217E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217E1F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E1F#FFFFFF#000000##FFFFFF
##217E1F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#027A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e1f;
/* rgb */ color: rgb(33, 126, 31);
/* oklch */ color: oklch(52.0% 0.156 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ca461',
    500: '#217e1f',
    950: '#000000',
  },
}
SCSS
$custom: #217e1f;
$custom-light: #6ca461;
$custom-dark: #000000;
JSON
{
  "hex": "#217e1f",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 118.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52038,
    "c": 0.15557,
    "h": 142.7
  },
  "luminance": 0.15344
}

Semantic roles & 50–950 ramp

primary
#217E1F
secondary
#AF48B1
accent
#44E4E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #217E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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