#22731B#22731B

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

Color values

HEX#22731B
RGBrgb(34, 115, 27)
HSLhsl(115, 62%, 28%)
HSVhsv(115, 77%, 45%)
CMYKcmyk(70.4%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.28, -41.73, 39.30)
CIE-LCHlch(42.28, 57.33, 136.72°)
OKLaboklab(48.86% -0.1137 0.0889)
OKLCHoklch(48.86% 0.144 142)
XYZxyz(6.9879, 12.6800, 3.1159)
Luminance0.1268 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22731B #6C1B73
analogous
#4E731B #22731B #1B7340
triadic
#22731B #1B2273 #731B22
tetradic
#22731B #1B4E73 #6C1B73 #73401B
square
#22731B #1B4E73 #6C1B73 #73401B
split-complementary
#22731B #401B73 #731B4E
monochromatic
#071906 #13410F #22731B #31A527 #44D038

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22731B#FFFFFF#000000##FFFFFF
##22731B1.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)
#76680B
Deuteranopia (green-blind)
#6C6124
Tritanopia (blue-blind)
#0F6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #22731b;
/* rgb */ color: rgb(34, 115, 27);
/* oklch */ color: oklch(48.9% 0.144 142.0);
Tailwind
colors: {
  custom: {
    50: '#6a9c5e',
    500: '#22731b',
    950: '#000000',
  },
}
SCSS
$custom: #22731b;
$custom-light: #6a9c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#22731b",
  "rgb": {
    "r": 34,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 115.227,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48865,
    "c": 0.14434,
    "h": 142
  },
  "luminance": 0.12681
}

Semantic roles & 50–950 ramp

primary
#22731B
secondary
#A042A8
accent
#43E5D8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #22731B

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

Preview Lab → · Contrast checker → · Palette generator →

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