#217F38#217F38

#217F38 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.137 H 147.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#217F38
RGBrgb(33, 127, 56)
HSLhsl(135, 59%, 31%)
HSVhsv(135, 74%, 50%)
CMYKcmyk(74%, 0%, 55.9%, 50.2%)
CIE-LABlab(46.69, -42.93, 30.67)
CIE-LCHlch(46.69, 52.76, 144.46°)
OKLaboklab(52.61% -0.1156 0.0735)
OKLCHoklch(52.61% 0.137 147.5)
XYZxyz(8.9297, 15.7866, 6.3171)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217F38 #7F2168
analogous
#397F21 #217F38 #217F67
triadic
#217F38 #38217F #7F3821
tetradic
#217F38 #21397F #7F2168 #7F6721
square
#217F38 #21397F #7F2168 #7F6721
split-complementary
#217F38 #67217F #7F2139
monochromatic
#081E0D #144E23 #217F38 #2EB04D #4AD06B

Accessibility & contrast

On white

5.05
#217F38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#217F38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217F38
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217F38#FFFFFF#000000##FFFFFF
##217F381.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807332
Deuteranopia (green-blind)
#756C3D
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #217f38;
/* rgb */ color: rgb(33, 127, 56);
/* oklch */ color: oklch(52.6% 0.137 147.5);
Tailwind
colors: {
  custom: {
    50: '#6ba570',
    500: '#217f38',
    950: '#000000',
  },
}
SCSS
$custom: #217f38;
$custom-light: #6ba570;
$custom-dark: #000000;
JSON
{
  "hex": "#217f38",
  "rgb": {
    "r": 33,
    "g": 127,
    "b": 56
  },
  "hsl": {
    "h": 134.681,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5261,
    "c": 0.13701,
    "h": 147.5
  },
  "luminance": 0.15788
}

Semantic roles & 50–950 ramp

primary
#217F38
secondary
#B24A98
accent
#46BCE2
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #217F38

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

Preview Lab → · Contrast checker → · Palette generator →

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