#217B1B#217B1B

#217B1B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.1% C 0.154 H 142.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#217B1B
RGBrgb(33, 123, 27)
HSLhsl(116, 64%, 29%)
HSVhsv(116, 78%, 48%)
CMYKcmyk(73.2%, 0%, 78%, 51.8%)
CIE-LABlab(45.04, -44.81, 42.06)
CIE-LCHlch(45.04, 61.46, 136.81°)
OKLaboklab(51.15% -0.122 0.0947)
OKLCHoklch(51.15% 0.154 142.2)
XYZxyz(7.9075, 14.5675, 3.4318)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#217B1B #751B7B
analogous
#517B1B #217B1B #1B7B45
triadic
#217B1B #1B217B #7B1B21
tetradic
#217B1B #1B517B #751B7B #7B451B
square
#217B1B #1B517B #751B7B #7B451B
split-complementary
#217B1B #451B7B #7B1B51
monochromatic
#071906 #144910 #217B1B #2EAD26 #46D43C

Accessibility & contrast

On white

5.37
#217B1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#217B1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #217B1B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##217B1B#FFFFFF#000000##FFFFFF
##217B1B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F06
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#067769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #217b1b;
/* rgb */ color: rgb(33, 123, 27);
/* oklch */ color: oklch(51.1% 0.154 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba25f',
    500: '#217b1b',
    950: '#000000',
  },
}
SCSS
$custom: #217b1b;
$custom-light: #6ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#217b1b",
  "rgb": {
    "r": 33,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 116.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51146,
    "c": 0.15441,
    "h": 142.2
  },
  "luminance": 0.14568
}

Semantic roles & 50–950 ramp

primary
#217B1B
secondary
#A843AF
accent
#41E7DD
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #217B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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