#2A8221#2A8221

#2A8221 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.156 H 141.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2A8221
RGBrgb(42, 130, 33)
HSLhsl(114, 60%, 32%)
HSVhsv(114, 75%, 51%)
CMYKcmyk(67.7%, 0%, 74.6%, 49%)
CIE-LABlab(47.71, -44.94, 42.53)
CIE-LCHlch(47.71, 61.88, 136.58°)
OKLaboklab(53.44% -0.1225 0.0964)
OKLCHoklch(53.44% 0.156 141.8)
XYZxyz(9.2115, 16.5664, 4.1507)
Luminance0.1657 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8221 #792182
analogous
#5B8221 #2A8221 #218249
triadic
#2A8221 #212A82 #82212A
tetradic
#2A8221 #215B82 #792182 #824921
square
#2A8221 #215B82 #792182 #824921
split-complementary
#2A8221 #492182 #82215B
monochromatic
#0A2008 #1A5115 #2A8221 #3AB32D #58D24C

Accessibility & contrast

On white

4.87
#2A8221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#2A8221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8221
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8221#FFFFFF#000000##FFFFFF
##2A82211.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857610
Deuteranopia (green-blind)
#7B6E2B
Tritanopia (blue-blind)
#187E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2a8221;
/* rgb */ color: rgb(42, 130, 33);
/* oklch */ color: oklch(53.4% 0.156 141.8);
Tailwind
colors: {
  custom: {
    50: '#70a763',
    500: '#2a8221',
    950: '#000000',
  },
}
SCSS
$custom: #2a8221;
$custom-light: #70a763;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8221",
  "rgb": {
    "r": 42,
    "g": 130,
    "b": 33
  },
  "hsl": {
    "h": 114.433,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5344,
    "c": 0.15594,
    "h": 141.8
  },
  "luminance": 0.16567
}

Semantic roles & 50–950 ramp

primary
#2A8221
secondary
#AB4AB4
accent
#45E3D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #2A8221

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

Preview Lab → · Contrast checker → · Palette generator →

#2A8221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva