#2A8E21#2A8E21

#2A8E21 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.8% C 0.170 H 141.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2A8E21
RGBrgb(42, 142, 33)
HSLhsl(115, 62%, 34%)
HSVhsv(115, 77%, 56%)
CMYKcmyk(70.4%, 0%, 76.8%, 44.3%)
CIE-LABlab(51.78, -49.21, 46.63)
CIE-LCHlch(51.78, 67.79, 136.54°)
OKLaboklab(56.81% -0.1341 0.105)
OKLCHoklch(56.81% 0.17 141.9)
XYZxyz(10.9017, 19.9469, 4.7142)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8E21 #85218E
analogous
#618E21 #2A8E21 #218E4F
triadic
#2A8E21 #212A8E #8E212A
tetradic
#2A8E21 #21618E #85218E #8E4F21
square
#2A8E21 #21618E #85218E #8E4F21
split-complementary
#2A8E21 #4F218E #8E2161
monochromatic
#0D2B0A #1B5C15 #2A8E21 #39C02D #5DD752

Accessibility & contrast

On white

4.21
#2A8E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#2A8E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8E21
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8E21#FFFFFF#000000##000000
##2A8E211.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#86782D
Tritanopia (blue-blind)
#118A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2a8e21;
/* rgb */ color: rgb(42, 142, 33);
/* oklch */ color: oklch(56.8% 0.170 141.9);
Tailwind
colors: {
  custom: {
    50: '#73b064',
    500: '#2a8e21',
    950: '#000000',
  },
}
SCSS
$custom: #2a8e21;
$custom-light: #73b064;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8e21",
  "rgb": {
    "r": 42,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 115.046,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56811,
    "c": 0.17029,
    "h": 141.9
  },
  "luminance": 0.19948
}

Semantic roles & 50–950 ramp

primary
#2A8E21
secondary
#B250BA
accent
#42E5D8
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8E21

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

Preview Lab → · Contrast checker → · Palette generator →

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