#22731F#22731F

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

Color values

HEX#22731F
RGBrgb(34, 115, 31)
HSLhsl(118, 58%, 29%)
HSVhsv(118, 73%, 45%)
CMYKcmyk(70.4%, 0%, 73%, 54.9%)
CIE-LABlab(42.31, -41.37, 37.70)
CIE-LCHlch(42.31, 55.97, 137.66°)
OKLaboklab(48.9% -0.1125 0.0861)
OKLCHoklch(48.9% 0.142 142.6)
XYZxyz(7.0373, 12.6997, 3.3765)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22731F #701F73
analogous
#4C731F #22731F #1F7346
triadic
#22731F #1F2273 #731F22
tetradic
#22731F #1F4C73 #701F73 #73461F
square
#22731F #1F4C73 #701F73 #73461F
split-complementary
#22731F #461F73 #731F4C
monochromatic
#071806 #144312 #22731F #30A32C #46CC41

Accessibility & contrast

On white

5.93
#22731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #22731F
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22731F#FFFFFF#000000##FFFFFF
##22731F1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#0E6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #22731f;
/* rgb */ color: rgb(34, 115, 31);
/* oklch */ color: oklch(48.9% 0.142 142.6);
Tailwind
colors: {
  custom: {
    50: '#6a9c60',
    500: '#22731f',
    950: '#000000',
  },
}
SCSS
$custom: #22731f;
$custom-light: #6a9c60;
$custom-dark: #000000;
JSON
{
  "hex": "#22731f",
  "rgb": {
    "r": 34,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 117.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.489,
    "c": 0.14167,
    "h": 142.6
  },
  "luminance": 0.127
}

Semantic roles & 50–950 ramp

primary
#22731F
secondary
#A347A7
accent
#47E1DB
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #22731F

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

Preview Lab → · Contrast checker → · Palette generator →

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