#217F2A#217F2A

#217F2A is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.4% C 0.149 H 144.4°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#217F2A
RGBrgb(33, 127, 42)
HSLhsl(126, 59%, 31%)
HSVhsv(126, 74%, 50%)
CMYKcmyk(74%, 0%, 66.9%, 50.2%)
CIE-LABlab(46.54, -44.79, 37.37)
CIE-LCHlch(46.54, 58.33, 140.16°)
OKLaboklab(52.43% -0.1211 0.0868)
OKLCHoklch(52.43% 0.149 144.4)
XYZxyz(8.6339, 15.6683, 4.7593)
Luminance0.1567 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F2A #7F2176
analogous
#477F21 #217F2A #217F59
triadic
#217F2A #2A217F #7F2A21
tetradic
#217F2A #21477F #7F2176 #7F5921
square
#217F2A #21477F #7F2176 #7F5921
split-complementary
#217F2A #59217F #7F2147
monochromatic
#081E0A #144E1A #217F2A #2EB03A #4AD057

Accessibility & contrast

On white

5.08
#217F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#217F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F2A
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F2A#FFFFFF#000000##FFFFFF
##217F2A1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817320
Deuteranopia (green-blind)
#776B32
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #217f2a;
/* rgb */ color: rgb(33, 127, 42);
/* oklch */ color: oklch(52.4% 0.149 144.4);
Tailwind
colors: {
  custom: {
    50: '#6ca567',
    500: '#217f2a',
    950: '#000000',
  },
}
SCSS
$custom: #217f2a;
$custom-light: #6ca567;
$custom-dark: #000000;
JSON
{
  "hex": "#217f2a",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 125.745,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52429,
    "c": 0.14902,
    "h": 144.4
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#217F2A
secondary
#B24AA8
accent
#46D3E2
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #217F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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