#2A8122#2A8122

#2A8122 is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.2% C 0.154 H 141.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#2A8122
RGBrgb(42, 129, 34)
HSLhsl(115, 58%, 32%)
HSVhsv(115, 74%, 51%)
CMYKcmyk(67.4%, 0%, 73.6%, 49.4%)
CIE-LABlab(47.38, -44.49, 41.79)
CIE-LCHlch(47.38, 61.04, 136.79°)
OKLaboklab(53.16% -0.1212 0.095)
OKLCHoklch(53.16% 0.154 141.9)
XYZxyz(9.0933, 16.3073, 4.1815)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8122 #792281
analogous
#5A8122 #2A8122 #228149
triadic
#2A8122 #222A81 #81222A
tetradic
#2A8122 #225A81 #792281 #814922
square
#2A8122 #225A81 #792281 #814922
split-complementary
#2A8122 #492281 #81225A
monochromatic
#0A2008 #1A5115 #2A8122 #3AB12F #58D04D

Accessibility & contrast

On white

4.93
#2A8122 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#2A8122 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8122
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8122#FFFFFF#000000##FFFFFF
##2A81221.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847512
Deuteranopia (green-blind)
#7A6E2B
Tritanopia (blue-blind)
#187D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a8122;
/* rgb */ color: rgb(42, 129, 34);
/* oklch */ color: oklch(53.2% 0.154 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a663',
    500: '#2a8122',
    950: '#000000',
  },
}
SCSS
$custom: #2a8122;
$custom-light: #70a663;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8122",
  "rgb": {
    "r": 42,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 114.947,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53165,
    "c": 0.15405,
    "h": 141.9
  },
  "luminance": 0.16308
}

Semantic roles & 50–950 ramp

primary
#2A8122
secondary
#AB4BB3
accent
#46E1D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2A8122

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

Preview Lab → · Contrast checker → · Palette generator →

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