#21781E#21781E

#21781E is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.3% C 0.149 H 142.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#21781E
RGBrgb(33, 120, 30)
HSLhsl(118, 60%, 29%)
HSVhsv(118, 75%, 47%)
CMYKcmyk(72.5%, 0%, 75%, 52.9%)
CIE-LABlab(44.02, -43.49, 39.87)
CIE-LCHlch(44.02, 59.00, 137.49°)
OKLaboklab(50.31% -0.1182 0.0905)
OKLCHoklch(50.31% 0.149 142.6)
XYZxyz(7.5776, 13.8492, 3.5019)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21781E #751E78
analogous
#4E781E #21781E #1E7848
triadic
#21781E #1E2178 #781E21
tetradic
#21781E #1E4E78 #751E78 #78481E
square
#21781E #1E4E78 #751E78 #78481E
split-complementary
#21781E #481E78 #781E4E
monochromatic
#071806 #144712 #21781E #2EA92A #46CF41

Accessibility & contrast

On white

5.57
#21781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21781E
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21781E#FFFFFF#000000##FFFFFF
##21781E1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C0E
Deuteranopia (green-blind)
#716527
Tritanopia (blue-blind)
#087466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #21781e;
/* rgb */ color: rgb(33, 120, 30);
/* oklch */ color: oklch(50.3% 0.149 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ba060',
    500: '#21781e',
    950: '#000000',
  },
}
SCSS
$custom: #21781e;
$custom-light: #6ba060;
$custom-dark: #000000;
JSON
{
  "hex": "#21781e",
  "rgb": {
    "r": 33,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 118,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50306,
    "c": 0.14892,
    "h": 142.6
  },
  "luminance": 0.1385
}

Semantic roles & 50–950 ramp

primary
#21781E
secondary
#A846AC
accent
#45E3DE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21781E

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

Preview Lab → · Contrast checker → · Palette generator →

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