#217E12#217E12

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

Color values

HEX#217E12
RGBrgb(33, 126, 18)
HSLhsl(112, 75%, 28%)
HSVhsv(112, 86%, 49%)
CMYKcmyk(73.8%, 0%, 85.7%, 50.6%)
CIE-LABlab(46.03, -46.45, 45.93)
CIE-LCHlch(46.03, 65.32, 135.32°)
OKLaboklab(51.95% -0.1268 0.1015)
OKLCHoklch(51.95% 0.162 141.3)
XYZxyz(8.1968, 15.2878, 3.0910)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217E12 #6F127E
analogous
#577E12 #217E12 #127E39
triadic
#217E12 #12217E #7E1221
tetradic
#217E12 #12577E #6F127E #7E3912
square
#217E12 #12577E #6F127E #7E3912
split-complementary
#217E12 #39127E #7E1257
monochromatic
#071B04 #13480A #217E12 #2FB41A #43E12A

Accessibility & contrast

On white

5.18
#217E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #217E12
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217E12#FFFFFF#000000##FFFFFF
##217E121.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#776A20
Tritanopia (blue-blind)
#077A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #217e12;
/* rgb */ color: rgb(33, 126, 18);
/* oklch */ color: oklch(52.0% 0.162 141.3);
Tailwind
colors: {
  custom: {
    50: '#6da45b',
    500: '#217e12',
    950: '#000000',
  },
}
SCSS
$custom: #217e12;
$custom-light: #6da45b;
$custom-dark: #000000;
JSON
{
  "hex": "#217e12",
  "rgb": {
    "r": 33,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 111.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51952,
    "c": 0.16241,
    "h": 141.3
  },
  "luminance": 0.15289
}

Semantic roles & 50–950 ramp

primary
#217E12
secondary
#A338B4
accent
#36F2D8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #217E12

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

Preview Lab → · Contrast checker → · Palette generator →

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