#2A8B21#2A8B21

#2A8B21 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.0% C 0.167 H 141.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2A8B21
RGBrgb(42, 139, 33)
HSLhsl(115, 62%, 34%)
HSVhsv(115, 76%, 55%)
CMYKcmyk(69.8%, 0%, 76.3%, 45.5%)
CIE-LABlab(50.76, -48.16, 45.62)
CIE-LCHlch(50.76, 66.34, 136.55°)
OKLaboklab(55.97% -0.1312 0.1029)
OKLCHoklch(55.97% 0.167 141.9)
XYZxyz(10.4614, 19.0662, 4.5674)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B21 #82218B
analogous
#5F8B21 #2A8B21 #218B4D
triadic
#2A8B21 #212A8B #8B212A
tetradic
#2A8B21 #215F8B #82218B #8B4D21
square
#2A8B21 #215F8B #82218B #8B4D21
split-complementary
#2A8B21 #4D218B #8B215F
monochromatic
#0C280A #1B5A15 #2A8B21 #39BC2D #5CD651

Accessibility & contrast

On white

4.36
#2A8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#2A8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8B21
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8B21#FFFFFF#000000##000000
##2A8B211.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0B
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#138777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8b21;
/* rgb */ color: rgb(42, 139, 33);
/* oklch */ color: oklch(56.0% 0.167 141.9);
Tailwind
colors: {
  custom: {
    50: '#72ae64',
    500: '#2a8b21',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b21;
$custom-light: #72ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b21",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 114.906,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55972,
    "c": 0.16676,
    "h": 141.9
  },
  "luminance": 0.19067
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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