#21771C#21771C

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

Color values

HEX#21771C
RGBrgb(33, 119, 28)
HSLhsl(117, 62%, 29%)
HSVhsv(117, 76%, 47%)
CMYKcmyk(72.3%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.65, -43.31, 40.30)
CIE-LCHlch(43.65, 59.16, 137.06°)
OKLaboklab(50% -0.1178 0.0911)
OKLCHoklch(50% 0.149 142.3)
XYZxyz(7.4332, 13.6000, 3.3317)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21771C #721C77
analogous
#4F771C #21771C #1C7745
triadic
#21771C #1C2177 #771C21
tetradic
#21771C #1C4F77 #721C77 #77451C
square
#21771C #1C4F77 #721C77 #77451C
split-complementary
#21771C #451C77 #771C4F
monochromatic
#071906 #134510 #21771C #2FA928 #44D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21771C#FFFFFF#000000##FFFFFF
##21771C1.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)
#7A6B0B
Deuteranopia (green-blind)
#706526
Tritanopia (blue-blind)
#097365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #21771c;
/* rgb */ color: rgb(33, 119, 28);
/* oklch */ color: oklch(50.0% 0.149 142.3);
Tailwind
colors: {
  custom: {
    50: '#6a9f5f',
    500: '#21771c',
    950: '#000000',
  },
}
SCSS
$custom: #21771c;
$custom-light: #6a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#21771c",
  "rgb": {
    "r": 33,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 116.703,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50001,
    "c": 0.14898,
    "h": 142.3
  },
  "luminance": 0.13601
}

Semantic roles & 50–950 ramp

primary
#21771C
secondary
#A544AB
accent
#43E5DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21771C

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

Preview Lab → · Contrast checker → · Palette generator →

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