#21771F#21771F

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

Color values

HEX#21771F
RGBrgb(33, 119, 31)
HSLhsl(119, 59%, 29%)
HSVhsv(119, 74%, 47%)
CMYKcmyk(72.3%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.68, -43.04, 39.11)
CIE-LCHlch(43.68, 58.16, 137.74°)
OKLaboklab(50.03% -0.117 0.0891)
OKLCHoklch(50.03% 0.147 142.7)
XYZxyz(7.4709, 13.6151, 3.5303)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21771F #751F77
analogous
#4D771F #21771F #1F7749
triadic
#21771F #1F2177 #771F21
tetradic
#21771F #1F4D77 #751F77 #77491F
square
#21771F #1F4D77 #751F77 #77491F
split-complementary
#21771F #491F77 #771F4D
monochromatic
#071806 #144612 #21771F #2EA82C #46CE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21771F#FFFFFF#000000##FFFFFF
##21771F1.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)
#7A6B11
Deuteranopia (green-blind)
#706528
Tritanopia (blue-blind)
#087366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #21771f;
/* rgb */ color: rgb(33, 119, 31);
/* oklch */ color: oklch(50.0% 0.147 142.7);
Tailwind
colors: {
  custom: {
    50: '#6a9f60',
    500: '#21771f',
    950: '#000000',
  },
}
SCSS
$custom: #21771f;
$custom-light: #6a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#21771f",
  "rgb": {
    "r": 33,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 118.636,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.14703,
    "h": 142.7
  },
  "luminance": 0.13616
}

Semantic roles & 50–950 ramp

primary
#21771F
secondary
#A847AB
accent
#46E2DE
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21771F

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

Preview Lab → · Contrast checker → · Palette generator →

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