#21782A#21782A

#21782A is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.140 H 144.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#21782A
RGBrgb(33, 120, 42)
HSLhsl(126, 57%, 30%)
HSVhsv(126, 73%, 47%)
CMYKcmyk(72.5%, 0%, 65%, 52.9%)
CIE-LABlab(44.12, -42.23, 34.67)
CIE-LCHlch(44.12, 54.64, 140.61°)
OKLaboklab(50.43% -0.1142 0.081)
OKLCHoklch(50.43% 0.14 144.6)
XYZxyz(7.7611, 13.9226, 4.4684)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21782A #78216F
analogous
#437821 #21782A #217856
triadic
#21782A #2A2178 #782A21
tetradic
#21782A #214378 #78216F #785621
square
#21782A #214378 #78216F #785621
split-complementary
#21782A #562178 #782143
monochromatic
#071808 #144819 #21782A #2EA83B #47CC55

Accessibility & contrast

On white

5.55
#21782A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#21782A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21782A
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21782A#FFFFFF#000000##FFFFFF
##21782A1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D21
Deuteranopia (green-blind)
#706631
Tritanopia (blue-blind)
#027567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21782a;
/* rgb */ color: rgb(33, 120, 42);
/* oklch */ color: oklch(50.4% 0.140 144.6);
Tailwind
colors: {
  custom: {
    50: '#6aa067',
    500: '#21782a',
    950: '#000000',
  },
}
SCSS
$custom: #21782a;
$custom-light: #6aa067;
$custom-dark: #000000;
JSON
{
  "hex": "#21782a",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 42
  },
  "hsl": {
    "h": 126.207,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.14003,
    "h": 144.6
  },
  "luminance": 0.13923
}

Semantic roles & 50–950 ramp

primary
#21782A
secondary
#AB4AA1
accent
#48D0E0
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #21782A

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

Preview Lab → · Contrast checker → · Palette generator →

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