#2A8A21#2A8A21

#2A8A21 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.7% C 0.166 H 141.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8A21
RGBrgb(42, 138, 33)
HSLhsl(115, 61%, 34%)
HSVhsv(115, 76%, 54%)
CMYKcmyk(69.6%, 0%, 76.1%, 45.9%)
CIE-LABlab(50.43, -47.81, 45.28)
CIE-LCHlch(50.43, 65.85, 136.55°)
OKLaboklab(55.69% -0.1303 0.1022)
OKLCHoklch(55.69% 0.166 141.9)
XYZxyz(10.3173, 18.7779, 4.5193)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A21 #81218A
analogous
#5E8A21 #2A8A21 #218A4C
triadic
#2A8A21 #212A8A #8A212A
tetradic
#2A8A21 #215E8A #81218A #8A4C21
square
#2A8A21 #215E8A #81218A #8A4C21
split-complementary
#2A8A21 #4C218A #8A215E
monochromatic
#0C2709 #1B5915 #2A8A21 #39BB2D #5CD550

Accessibility & contrast

On white

4.42
#2A8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A21
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A21#FFFFFF#000000##000000
##2A8A211.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0C
Deuteranopia (green-blind)
#82752C
Tritanopia (blue-blind)
#148676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a21;
/* rgb */ color: rgb(42, 138, 33);
/* oklch */ color: oklch(55.7% 0.166 141.9);
Tailwind
colors: {
  custom: {
    50: '#72ad64',
    500: '#2a8a21',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a21;
$custom-light: #72ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a21",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 114.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55691,
    "c": 0.16558,
    "h": 141.9
  },
  "luminance": 0.18779
}

Semantic roles & 50–950 ramp

primary
#2A8A21
secondary
#AF4EB9
accent
#43E5D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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