#21771A#21771A

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

Color values

HEX#21771A
RGBrgb(33, 119, 26)
HSLhsl(115, 64%, 28%)
HSVhsv(115, 78%, 47%)
CMYKcmyk(72.3%, 0%, 78.2%, 53.3%)
CIE-LABlab(43.64, -43.47, 41.05)
CIE-LCHlch(43.64, 59.79, 136.64°)
OKLaboklab(49.99% -0.1184 0.0924)
OKLCHoklch(49.99% 0.15 142)
XYZxyz(7.4101, 13.5908, 3.2098)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21771A #701A77
analogous
#4F771A #21771A #1A7741
triadic
#21771A #1A2177 #771A21
tetradic
#21771A #1A4F77 #701A77 #77411A
square
#21771A #1A4F77 #701A77 #77411A
split-complementary
#21771A #411A77 #771A4F
monochromatic
#071905 #13450F #21771A #2FA925 #44D338

Accessibility & contrast

On white

5.65
#21771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #21771A
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21771A#FFFFFF#000000##FFFFFF
##21771A1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B06
Deuteranopia (green-blind)
#706524
Tritanopia (blue-blind)
#0A7365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #21771a;
/* rgb */ color: rgb(33, 119, 26);
/* oklch */ color: oklch(50.0% 0.150 142.0);
Tailwind
colors: {
  custom: {
    50: '#6b9f5e',
    500: '#21771a',
    950: '#000000',
  },
}
SCSS
$custom: #21771a;
$custom-light: #6b9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21771a",
  "rgb": {
    "r": 33,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 115.484,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49986,
    "c": 0.1502,
    "h": 142
  },
  "luminance": 0.13592
}

Semantic roles & 50–950 ramp

primary
#21771A
secondary
#A441AC
accent
#41E7DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21771A

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

Preview Lab → · Contrast checker → · Palette generator →

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