#21771B#21771B

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

Color values

HEX#21771B
RGBrgb(33, 119, 27)
HSLhsl(116, 63%, 29%)
HSVhsv(116, 77%, 47%)
CMYKcmyk(72.3%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.65, -43.39, 40.67)
CIE-LCHlch(43.65, 59.47, 136.85°)
OKLaboklab(49.99% -0.1181 0.0918)
OKLCHoklch(49.99% 0.15 142.2)
XYZxyz(7.4214, 13.5953, 3.2697)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21771B #711B77
analogous
#4F771B #21771B #1B7743
triadic
#21771B #1B2177 #771B21
tetradic
#21771B #1B4F77 #711B77 #77431B
square
#21771B #1B4F77 #711B77 #77431B
split-complementary
#21771B #431B77 #771B4F
monochromatic
#071906 #134510 #21771B #2FA926 #44D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21771B#FFFFFF#000000##FFFFFF
##21771B1.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)
#706525
Tritanopia (blue-blind)
#0A7365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #21771b;
/* rgb */ color: rgb(33, 119, 27);
/* oklch */ color: oklch(50.0% 0.150 142.2);
Tailwind
colors: {
  custom: {
    50: '#6a9f5e',
    500: '#21771b',
    950: '#000000',
  },
}
SCSS
$custom: #21771b;
$custom-light: #6a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#21771b",
  "rgb": {
    "r": 33,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 116.087,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49993,
    "c": 0.1496,
    "h": 142.2
  },
  "luminance": 0.13596
}

Semantic roles & 50–950 ramp

primary
#21771B
secondary
#A542AB
accent
#42E6DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #21771B

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

Preview Lab → · Contrast checker → · Palette generator →

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