#21782D#21782D

#21782D is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.138 H 145.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#21782D
RGBrgb(33, 120, 45)
HSLhsl(128, 57%, 30%)
HSVhsv(128, 73%, 47%)
CMYKcmyk(72.5%, 0%, 62.5%, 52.9%)
CIE-LABlab(44.15, -41.85, 33.25)
CIE-LCHlch(44.15, 53.45, 141.53°)
OKLaboklab(50.47% -0.113 0.0783)
OKLCHoklch(50.47% 0.138 145.3)
XYZxyz(7.8168, 13.9449, 4.7618)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21782D #78216C
analogous
#407821 #21782D #217859
triadic
#21782D #2D2178 #782D21
tetradic
#21782D #214078 #78216C #785921
square
#21782D #214078 #78216C #785921
split-complementary
#21782D #592178 #782140
monochromatic
#071809 #14481B #21782D #2EA83F #47CC59

Accessibility & contrast

On white

5.54
#21782D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#21782D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21782D
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21782D#FFFFFF#000000##FFFFFF
##21782D1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D25
Deuteranopia (green-blind)
#706633
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21782d;
/* rgb */ color: rgb(33, 120, 45);
/* oklch */ color: oklch(50.5% 0.138 145.3);
Tailwind
colors: {
  custom: {
    50: '#6aa069',
    500: '#21782d',
    950: '#000000',
  },
}
SCSS
$custom: #21782d;
$custom-light: #6aa069;
$custom-dark: #000000;
JSON
{
  "hex": "#21782d",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 45
  },
  "hsl": {
    "h": 128.276,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50465,
    "c": 0.1375,
    "h": 145.3
  },
  "luminance": 0.13946
}

Semantic roles & 50–950 ramp

primary
#21782D
secondary
#AB4A9E
accent
#48CBE0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #21782D

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

Preview Lab → · Contrast checker → · Palette generator →

#21782D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva