#20771B#20771B

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

Color values

HEX#20771B
RGBrgb(32, 119, 27)
HSLhsl(117, 63%, 29%)
HSVhsv(117, 77%, 47%)
CMYKcmyk(73.1%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.62, -43.59, 40.64)
CIE-LCHlch(43.62, 59.60, 137.01°)
OKLaboklab(49.97% -0.1186 0.0917)
OKLCHoklch(49.97% 0.15 142.3)
XYZxyz(7.3899, 13.5791, 3.2683)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20771B #721B77
analogous
#4E771B #20771B #1B7744
triadic
#20771B #1B2077 #771B20
tetradic
#20771B #1B4E77 #721B77 #77441B
square
#20771B #1B4E77 #721B77 #77441B
split-complementary
#20771B #441B77 #771B4E
monochromatic
#071906 #134510 #20771B #2DA926 #42D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##20771B#FFFFFF#000000##FFFFFF
##20771B1.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)
#7A6B09
Deuteranopia (green-blind)
#706425
Tritanopia (blue-blind)
#077365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #20771b;
/* rgb */ color: rgb(32, 119, 27);
/* oklch */ color: oklch(50.0% 0.150 142.3);
Tailwind
colors: {
  custom: {
    50: '#6a9f5e',
    500: '#20771b',
    950: '#000000',
  },
}
SCSS
$custom: #20771b;
$custom-light: #6a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#20771b",
  "rgb": {
    "r": 32,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 116.739,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49967,
    "c": 0.14994,
    "h": 142.3
  },
  "luminance": 0.1358
}

Semantic roles & 50–950 ramp

primary
#20771B
secondary
#A642AB
accent
#42E6DD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #20771B

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

Preview Lab → · Contrast checker → · Palette generator →

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