#22781F#22781F

#22781F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.3% C 0.148 H 142.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#22781F
RGBrgb(34, 120, 31)
HSLhsl(118, 59%, 30%)
HSVhsv(118, 74%, 47%)
CMYKcmyk(71.7%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.05, -43.20, 39.51)
CIE-LCHlch(44.05, 58.54, 137.56°)
OKLaboklab(50.34% -0.1174 0.0899)
OKLCHoklch(50.34% 0.148 142.6)
XYZxyz(7.6230, 13.8711, 3.5717)
Luminance0.1387 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22781F #751F78
analogous
#4E781F #22781F #1F7849
triadic
#22781F #1F2278 #781F22
tetradic
#22781F #1F4E78 #751F78 #78491F
square
#22781F #1F4E78 #751F78 #78491F
split-complementary
#22781F #491F78 #781F4E
monochromatic
#071806 #144712 #22781F #30A92C #48CE43

Accessibility & contrast

On white

5.56
#22781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#22781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #22781F
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22781F#FFFFFF#000000##FFFFFF
##22781F1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C10
Deuteranopia (green-blind)
#716528
Tritanopia (blue-blind)
#0B7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #22781f;
/* rgb */ color: rgb(34, 120, 31);
/* oklch */ color: oklch(50.3% 0.148 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ba060',
    500: '#22781f',
    950: '#000000',
  },
}
SCSS
$custom: #22781f;
$custom-light: #6ba060;
$custom-dark: #000000;
JSON
{
  "hex": "#22781f",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 117.978,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.14791,
    "h": 142.6
  },
  "luminance": 0.13872
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22781F

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

Preview Lab → · Contrast checker → · Palette generator →

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