#22821B#22821B

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

Color values

HEX#22821B
RGBrgb(34, 130, 27)
HSLhsl(116, 66%, 31%)
HSVhsv(116, 79%, 51%)
CMYKcmyk(73.8%, 0%, 79.2%, 49%)
CIE-LABlab(47.47, -47.06, 44.46)
CIE-LCHlch(47.47, 64.74, 136.62°)
OKLaboklab(53.18% -0.1281 0.0997)
OKLCHoklch(53.18% 0.162 142.1)
XYZxyz(8.8396, 16.3835, 3.7332)
Luminance0.1638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22821B #7B1B82
analogous
#55821B #22821B #1B8247
triadic
#22821B #1B2282 #821B22
tetradic
#22821B #1B5582 #7B1B82 #82471B
square
#22821B #1B5582 #7B1B82 #82471B
split-complementary
#22821B #471B82 #821B55
monochromatic
#071D06 #154F10 #22821B #2FB526 #4AD740

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##22821B#FFFFFF#000000##FFFFFF
##22821B1.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)
#857502
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#037E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #22821b;
/* rgb */ color: rgb(34, 130, 27);
/* oklch */ color: oklch(53.2% 0.162 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ea760',
    500: '#22821b',
    950: '#000000',
  },
}
SCSS
$custom: #22821b;
$custom-light: #6ea760;
$custom-dark: #000000;
JSON
{
  "hex": "#22821b",
  "rgb": {
    "r": 34,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 115.922,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53176,
    "c": 0.16233,
    "h": 142.1
  },
  "luminance": 0.16384
}

Semantic roles & 50–950 ramp

primary
#22821B
secondary
#AE43B6
accent
#3FE9DD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #22821B

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

Preview Lab → · Contrast checker → · Palette generator →

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