#217312#217312

#217312 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.150 H 141.1°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#217312
RGBrgb(33, 115, 18)
HSLhsl(111, 73%, 26%)
HSVhsv(111, 84%, 45%)
CMYKcmyk(71.3%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.20, -42.60, 42.40)
CIE-LCHlch(42.20, 60.10, 135.14°)
OKLaboklab(48.77% -0.1165 0.0941)
OKLCHoklch(48.77% 0.15 141.1)
XYZxyz(6.8668, 12.6277, 2.6477)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217312 #641273
analogous
#517312 #217312 #127333
triadic
#217312 #122173 #731221
tetradic
#217312 #125173 #641273 #733312
square
#217312 #125173 #641273 #733312
split-complementary
#217312 #331273 #731251
monochromatic
#081A04 #123E0A #217312 #30A81A #40DD23

Accessibility & contrast

On white

5.96
#217312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#217312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217312
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217312#FFFFFF#000000##FFFFFF
##2173121.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#0F6F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #217312;
/* rgb */ color: rgb(33, 115, 18);
/* oklch */ color: oklch(48.8% 0.150 141.1);
Tailwind
colors: {
  custom: {
    50: '#6a9c59',
    500: '#217312',
    950: '#000000',
  },
}
SCSS
$custom: #217312;
$custom-light: #6a9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#217312",
  "rgb": {
    "r": 33,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 110.722,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.1497,
    "h": 141.1
  },
  "luminance": 0.12628
}

Semantic roles & 50–950 ramp

primary
#217312
secondary
#9837AA
accent
#38F0D3
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #217312

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

Preview Lab → · Contrast checker → · Palette generator →

#217312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva