#22731C#22731C

#22731C is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.144 H 142.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#22731C
RGBrgb(34, 115, 28)
HSLhsl(116, 61%, 28%)
HSVhsv(116, 76%, 45%)
CMYKcmyk(70.4%, 0%, 75.7%, 54.9%)
CIE-LABlab(42.28, -41.65, 38.91)
CIE-LCHlch(42.28, 57.00, 136.94°)
OKLaboklab(48.87% -0.1134 0.0883)
OKLCHoklch(48.87% 0.144 142.1)
XYZxyz(6.9996, 12.6847, 3.1779)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22731C #6D1C73
analogous
#4D731C #22731C #1C7341
triadic
#22731C #1C2273 #731C22
tetradic
#22731C #1C4D73 #6D1C73 #73411C
square
#22731C #1C4D73 #6D1C73 #73411C
split-complementary
#22731C #411C73 #731C4D
monochromatic
#071906 #134210 #22731C #31A428 #45CF3A

Accessibility & contrast

On white

5.94
#22731C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#22731C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #22731C
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22731C#FFFFFF#000000##FFFFFF
##22731C1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680D
Deuteranopia (green-blind)
#6C6125
Tritanopia (blue-blind)
#0F6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #22731c;
/* rgb */ color: rgb(34, 115, 28);
/* oklch */ color: oklch(48.9% 0.144 142.1);
Tailwind
colors: {
  custom: {
    50: '#6a9c5e',
    500: '#22731c',
    950: '#000000',
  },
}
SCSS
$custom: #22731c;
$custom-light: #6a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#22731c",
  "rgb": {
    "r": 34,
    "g": 115,
    "b": 28
  },
  "hsl": {
    "h": 115.862,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.1437,
    "h": 142.1
  },
  "luminance": 0.12685
}

Semantic roles & 50–950 ramp

primary
#22731C
secondary
#A143A7
accent
#44E4D9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #22731C

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

Preview Lab → · Contrast checker → · Palette generator →

#22731C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva