#22781B#22781B

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

Color values

HEX#22781B
RGBrgb(34, 120, 27)
HSLhsl(115, 63%, 29%)
HSVhsv(115, 78%, 47%)
CMYKcmyk(71.7%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.02, -43.54, 41.05)
CIE-LCHlch(44.02, 59.85, 136.69°)
OKLaboklab(50.31% -0.1186 0.0926)
OKLCHoklch(50.31% 0.15 142)
XYZxyz(7.5736, 13.8513, 3.3111)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22781B #711B78
analogous
#51781B #22781B #1B7843
triadic
#22781B #1B2278 #781B22
tetradic
#22781B #1B5178 #711B78 #78431B
square
#22781B #1B5178 #711B78 #78431B
split-complementary
#22781B #431B78 #781B51
monochromatic
#071906 #144610 #22781B #30AA26 #46D33B

Accessibility & contrast

On white

5.57
#22781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #22781B
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22781B#FFFFFF#000000##FFFFFF
##22781B1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C08
Deuteranopia (green-blind)
#716525
Tritanopia (blue-blind)
#0C7466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #22781b;
/* rgb */ color: rgb(34, 120, 27);
/* oklch */ color: oklch(50.3% 0.150 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba05e',
    500: '#22781b',
    950: '#000000',
  },
}
SCSS
$custom: #22781b;
$custom-light: #6ba05e;
$custom-dark: #000000;
JSON
{
  "hex": "#22781b",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 115.484,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50309,
    "c": 0.15046,
    "h": 142
  },
  "luminance": 0.13852
}

Semantic roles & 50–950 ramp

primary
#22781B
secondary
#A443AC
accent
#41E6DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080F05
muted
#7A7E79

Preview Lab

Preview with #22781B

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

Preview Lab → · Contrast checker → · Palette generator →

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