#21781A#21781A

#21781A is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.151 H 142.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#21781A
RGBrgb(33, 120, 26)
HSLhsl(116, 64%, 29%)
HSVhsv(116, 78%, 47%)
CMYKcmyk(72.5%, 0%, 78.3%, 52.9%)
CIE-LABlab(43.99, -43.83, 41.39)
CIE-LCHlch(43.99, 60.28, 136.64°)
OKLaboklab(50.27% -0.1194 0.0931)
OKLCHoklch(50.27% 0.151 142)
XYZxyz(7.5297, 13.8300, 3.2497)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21781A #711A78
analogous
#50781A #21781A #1A7842
triadic
#21781A #1A2178 #781A21
tetradic
#21781A #1A5078 #711A78 #78421A
square
#21781A #1A5078 #711A78 #78421A
split-complementary
#21781A #421A78 #781A50
monochromatic
#071905 #13460F #21781A #2FAA25 #44D438

Accessibility & contrast

On white

5.58
#21781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#21781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21781A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21781A#FFFFFF#000000##FFFFFF
##21781A1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C06
Deuteranopia (green-blind)
#716524
Tritanopia (blue-blind)
#097466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21781a;
/* rgb */ color: rgb(33, 120, 26);
/* oklch */ color: oklch(50.3% 0.151 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba05e',
    500: '#21781a',
    950: '#000000',
  },
}
SCSS
$custom: #21781a;
$custom-light: #6ba05e;
$custom-dark: #000000;
JSON
{
  "hex": "#21781a",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 115.532,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50274,
    "c": 0.1514,
    "h": 142
  },
  "luminance": 0.13831
}

Semantic roles & 50–950 ramp

primary
#21781A
secondary
#A541AC
accent
#40E7DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21781A

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

Preview Lab → · Contrast checker → · Palette generator →

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