#217B1F#217B1F

#217B1F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.152 H 142.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#217B1F
RGBrgb(33, 123, 31)
HSLhsl(119, 60%, 30%)
HSVhsv(119, 75%, 48%)
CMYKcmyk(73.2%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.06, -44.48, 40.55)
CIE-LCHlch(45.06, 60.18, 137.65°)
OKLaboklab(51.18% -0.1208 0.0921)
OKLCHoklch(51.18% 0.152 142.7)
XYZxyz(7.9570, 14.5873, 3.6923)
Luminance0.1459 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B1F #791F7B
analogous
#4F7B1F #217B1F #1F7B4B
triadic
#217B1F #1F217B #7B1F21
tetradic
#217B1F #1F4F7B #791F7B #7B4B1F
square
#217B1F #1F4F7B #791F7B #7B4B1F
split-complementary
#217B1F #4B1F7B #7B1F4F
monochromatic
#071906 #144A13 #217B1F #2EAC2B #47D044

Accessibility & contrast

On white

5.36
#217B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#217B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B1F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B1F#FFFFFF#000000##FFFFFF
##217B1F1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#057769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b1f;
/* rgb */ color: rgb(33, 123, 31);
/* oklch */ color: oklch(51.2% 0.152 142.7);
Tailwind
colors: {
  custom: {
    50: '#6ba261',
    500: '#217b1f',
    950: '#000000',
  },
}
SCSS
$custom: #217b1f;
$custom-light: #6ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#217b1f",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 118.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51178,
    "c": 0.15194,
    "h": 142.7
  },
  "luminance": 0.14588
}

Semantic roles & 50–950 ramp

primary
#217B1F
secondary
#AC48AE
accent
#45E3DF
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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