#21782C#21782C

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

Color values

HEX#21782C
RGBrgb(33, 120, 44)
HSLhsl(128, 57%, 30%)
HSVhsv(128, 73%, 47%)
CMYKcmyk(72.5%, 0%, 63.3%, 52.9%)
CIE-LABlab(44.14, -41.98, 33.73)
CIE-LCHlch(44.14, 53.85, 141.22°)
OKLaboklab(50.45% -0.1134 0.0792)
OKLCHoklch(50.45% 0.138 145.1)
XYZxyz(7.7978, 13.9373, 4.6616)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21782C #78216D
analogous
#427821 #21782C #217857
triadic
#21782C #2C2178 #782C21
tetradic
#21782C #214278 #78216D #785721
square
#21782C #214278 #78216D #785721
split-complementary
#21782C #572178 #782142
monochromatic
#071809 #14481A #21782C #2EA83E #47CC58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21782C#FFFFFF#000000##FFFFFF
##21782C1.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)
#7A6D24
Deuteranopia (green-blind)
#706632
Tritanopia (blue-blind)
#017568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21782c;
/* rgb */ color: rgb(33, 120, 44);
/* oklch */ color: oklch(50.5% 0.138 145.1);
Tailwind
colors: {
  custom: {
    50: '#6aa068',
    500: '#21782c',
    950: '#000000',
  },
}
SCSS
$custom: #21782c;
$custom-light: #6aa068;
$custom-dark: #000000;
JSON
{
  "hex": "#21782c",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 44
  },
  "hsl": {
    "h": 127.586,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50452,
    "c": 0.13835,
    "h": 145.1
  },
  "luminance": 0.13938
}

Semantic roles & 50–950 ramp

primary
#21782C
secondary
#AB4A9F
accent
#48CDE0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #21782C

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

Preview Lab → · Contrast checker → · Palette generator →

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