#20771F#20771F

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

Color values

HEX#20771F
RGBrgb(32, 119, 31)
HSLhsl(119, 59%, 29%)
HSVhsv(119, 74%, 47%)
CMYKcmyk(73.1%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.65, -43.24, 39.08)
CIE-LCHlch(43.65, 58.29, 137.89°)
OKLaboklab(50% -0.1174 0.089)
OKLCHoklch(50% 0.147 142.8)
XYZxyz(7.4394, 13.5988, 3.5288)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20771F #761F77
analogous
#4C771F #20771F #1F774A
triadic
#20771F #1F2077 #771F20
tetradic
#20771F #1F4C77 #761F77 #774A1F
square
#20771F #1F4C77 #761F77 #774A1F
split-complementary
#20771F #4A1F77 #771F4C
monochromatic
#071806 #134612 #20771F #2DA82C #44CE43

Accessibility & contrast

On white

5.65
#20771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #20771F
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #20771f;
/* rgb */ color: rgb(32, 119, 31);
/* oklch */ color: oklch(50.0% 0.147 142.8);
Tailwind
colors: {
  custom: {
    50: '#6a9f60',
    500: '#20771f',
    950: '#000000',
  },
}
SCSS
$custom: #20771f;
$custom-light: #6a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#20771f",
  "rgb": {
    "r": 32,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 119.318,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5,
    "c": 0.14738,
    "h": 142.8
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#20771F
secondary
#A947AB
accent
#46E2E0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #20771F

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

Preview Lab → · Contrast checker → · Palette generator →

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