#22821F#22821F

#22821F is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.160 H 142.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#22821F
RGBrgb(34, 130, 31)
HSLhsl(118, 61%, 32%)
HSVhsv(118, 76%, 51%)
CMYKcmyk(73.8%, 0%, 76.2%, 49%)
CIE-LABlab(47.50, -46.75, 43.03)
CIE-LCHlch(47.50, 63.54, 137.37°)
OKLaboklab(53.21% -0.1271 0.0973)
OKLCHoklch(53.21% 0.16 142.6)
XYZxyz(8.8891, 16.4033, 3.9937)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22821F #7F1F82
analogous
#54821F #22821F #1F824E
triadic
#22821F #1F2282 #821F22
tetradic
#22821F #1F5482 #7F1F82 #824E1F
square
#22821F #1F5482 #7F1F82 #824E1F
split-complementary
#22821F #4E1F82 #821F54
monochromatic
#081F07 #155113 #22821F #2FB32B #4CD348

Accessibility & contrast

On white

4.91
#22821F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#22821F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #22821F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22821F#FFFFFF#000000##FFFFFF
##22821F1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85750C
Deuteranopia (green-blind)
#7A6E2A
Tritanopia (blue-blind)
#027E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #22821f;
/* rgb */ color: rgb(34, 130, 31);
/* oklch */ color: oklch(53.2% 0.160 142.6);
Tailwind
colors: {
  custom: {
    50: '#6da762',
    500: '#22821f',
    950: '#000000',
  },
}
SCSS
$custom: #22821f;
$custom-light: #6da762;
$custom-dark: #000000;
JSON
{
  "hex": "#22821f",
  "rgb": {
    "r": 34,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 118.182,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53205,
    "c": 0.16002,
    "h": 142.6
  },
  "luminance": 0.16404
}

Semantic roles & 50–950 ramp

primary
#22821F
secondary
#B248B5
accent
#43E5E0
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #22821F

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

Preview Lab → · Contrast checker → · Palette generator →

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