#21782F#21782F

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

Color values

HEX#21782F
RGBrgb(33, 120, 47)
HSLhsl(130, 57%, 30%)
HSVhsv(130, 73%, 47%)
CMYKcmyk(72.5%, 0%, 60.8%, 52.9%)
CIE-LABlab(44.18, -41.58, 32.28)
CIE-LCHlch(44.18, 52.64, 142.18°)
OKLaboklab(50.49% -0.1122 0.0764)
OKLCHoklch(50.49% 0.136 145.8)
XYZxyz(7.8562, 13.9607, 4.9694)
Luminance0.1396 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21782F #78216A
analogous
#3F7821 #21782F #21785A
triadic
#21782F #2F2178 #782F21
tetradic
#21782F #213F78 #78216A #785A21
square
#21782F #213F78 #78216A #785A21
split-complementary
#21782F #5A2178 #78213F
monochromatic
#071809 #14481C #21782F #2EA842 #47CC5C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21782F#FFFFFF#000000##FFFFFF
##21782F1.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)
#7A6D28
Deuteranopia (green-blind)
#706635
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21782f;
/* rgb */ color: rgb(33, 120, 47);
/* oklch */ color: oklch(50.5% 0.136 145.8);
Tailwind
colors: {
  custom: {
    50: '#6aa06a',
    500: '#21782f',
    950: '#000000',
  },
}
SCSS
$custom: #21782f;
$custom-light: #6aa06a;
$custom-dark: #000000;
JSON
{
  "hex": "#21782f",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 47
  },
  "hsl": {
    "h": 129.655,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50491,
    "c": 0.13575,
    "h": 145.8
  },
  "luminance": 0.13962
}

Semantic roles & 50–950 ramp

primary
#21782F
secondary
#AB4A9B
accent
#48C8E0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #21782F

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

Preview Lab → · Contrast checker → · Palette generator →

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