#22771F#22771F

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

Color values

HEX#22771F
RGBrgb(34, 119, 31)
HSLhsl(118, 59%, 29%)
HSVhsv(118, 74%, 47%)
CMYKcmyk(71.4%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.70, -42.84, 39.15)
CIE-LCHlch(43.70, 58.03, 137.58°)
OKLaboklab(50.05% -0.1165 0.0891)
OKLCHoklch(50.05% 0.147 142.6)
XYZxyz(7.5034, 13.6319, 3.5318)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22771F #741F77
analogous
#4E771F #22771F #1F7748
triadic
#22771F #1F2277 #771F22
tetradic
#22771F #1F4E77 #741F77 #77481F
square
#22771F #1F4E77 #741F77 #77481F
split-complementary
#22771F #481F77 #771F4E
monochromatic
#071806 #144612 #22771F #30A82C #47CE43

Accessibility & contrast

On white

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

On black

3.73
#22771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##22771F#FFFFFF#000000##FFFFFF
##22771F1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B11
Deuteranopia (green-blind)
#706528
Tritanopia (blue-blind)
#0B7366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #22771f;
/* rgb */ color: rgb(34, 119, 31);
/* oklch */ color: oklch(50.1% 0.147 142.6);
Tailwind
colors: {
  custom: {
    50: '#6b9f60',
    500: '#22771f',
    950: '#000000',
  },
}
SCSS
$custom: #22771f;
$custom-light: #6b9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#22771f",
  "rgb": {
    "r": 34,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 117.955,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.14667,
    "h": 142.6
  },
  "luminance": 0.13633
}

Semantic roles & 50–950 ramp

primary
#22771F
secondary
#A747AB
accent
#46E2DD
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #22771F

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

Preview Lab → · Contrast checker → · Palette generator →

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