#22771B#22771B

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

Color values

HEX#22771B
RGBrgb(34, 119, 27)
HSLhsl(115, 63%, 29%)
HSVhsv(115, 77%, 47%)
CMYKcmyk(71.4%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.67, -43.19, 40.71)
CIE-LCHlch(43.67, 59.35, 136.69°)
OKLaboklab(50.02% -0.1176 0.0919)
OKLCHoklch(50.02% 0.149 142)
XYZxyz(7.4539, 13.6121, 3.2713)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22771B #701B77
analogous
#50771B #22771B #1B7742
triadic
#22771B #1B2277 #771B22
tetradic
#22771B #1B5077 #701B77 #77421B
square
#22771B #1B5077 #701B77 #77421B
split-complementary
#22771B #421B77 #771B50
monochromatic
#071906 #144510 #22771B #30A926 #46D23A

Accessibility & contrast

On white

5.64
#22771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #22771B
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #22771b;
/* rgb */ color: rgb(34, 119, 27);
/* oklch */ color: oklch(50.0% 0.149 142.0);
Tailwind
colors: {
  custom: {
    50: '#6b9f5e',
    500: '#22771b',
    950: '#000000',
  },
}
SCSS
$custom: #22771b;
$custom-light: #6b9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#22771b",
  "rgb": {
    "r": 34,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 115.435,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50021,
    "c": 0.14924,
    "h": 142
  },
  "luminance": 0.13613
}

Semantic roles & 50–950 ramp

primary
#22771B
secondary
#A342AB
accent
#42E6DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #22771B

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

Preview Lab → · Contrast checker → · Palette generator →

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