#21771E#21771E

#21771E is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.148 H 142.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#21771E
RGBrgb(33, 119, 30)
HSLhsl(118, 60%, 29%)
HSVhsv(118, 75%, 47%)
CMYKcmyk(72.3%, 0%, 74.8%, 53.3%)
CIE-LABlab(43.67, -43.13, 39.52)
CIE-LCHlch(43.67, 58.50, 137.51°)
OKLaboklab(50.02% -0.1173 0.0898)
OKLCHoklch(50.02% 0.148 142.6)
XYZxyz(7.4579, 13.6099, 3.4620)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21771E #741E77
analogous
#4E771E #21771E #1E7748
triadic
#21771E #1E2177 #771E21
tetradic
#21771E #1E4E77 #741E77 #77481E
square
#21771E #1E4E77 #741E77 #77481E
split-complementary
#21771E #481E77 #771E4E
monochromatic
#071806 #134612 #21771E #2FA82A #45CF40

Accessibility & contrast

On white

5.64
#21771E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#21771E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #21771E
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21771E#FFFFFF#000000##FFFFFF
##21771E1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B0F
Deuteranopia (green-blind)
#706527
Tritanopia (blue-blind)
#097366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #21771e;
/* rgb */ color: rgb(33, 119, 30);
/* oklch */ color: oklch(50.0% 0.148 142.6);
Tailwind
colors: {
  custom: {
    50: '#6a9f60',
    500: '#21771e',
    950: '#000000',
  },
}
SCSS
$custom: #21771e;
$custom-light: #6a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#21771e",
  "rgb": {
    "r": 33,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 117.978,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.1477,
    "h": 142.6
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21771E

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

Preview Lab → · Contrast checker → · Palette generator →

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