#2A8420#2A8420

#2A8420 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.159 H 141.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A8420
RGBrgb(42, 132, 32)
HSLhsl(114, 61%, 32%)
HSVhsv(114, 76%, 52%)
CMYKcmyk(68.2%, 0%, 75.8%, 48.2%)
CIE-LABlab(48.38, -45.75, 43.60)
CIE-LCHlch(48.38, 63.20, 136.37°)
OKLaboklab(54% -0.1248 0.0985)
OKLCHoklch(54% 0.159 141.7)
XYZxyz(9.4663, 17.0981, 4.1676)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8420 #7A2084
analogous
#5C8420 #2A8420 #208448
triadic
#2A8420 #202A84 #84202A
tetradic
#2A8420 #205C84 #7A2084 #844820
square
#2A8420 #205C84 #7A2084 #844820
split-complementary
#2A8420 #482084 #84205C
monochromatic
#0B2108 #1A5314 #2A8420 #3AB52C #59D34B

Accessibility & contrast

On white

4.75
#2A8420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2A8420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8420
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8420#FFFFFF#000000##FFFFFF
##2A84201.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#7D702A
Tritanopia (blue-blind)
#178071
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8420;
/* rgb */ color: rgb(42, 132, 32);
/* oklch */ color: oklch(54.0% 0.159 141.7);
Tailwind
colors: {
  custom: {
    50: '#71a963',
    500: '#2a8420',
    950: '#000000',
  },
}
SCSS
$custom: #2a8420;
$custom-light: #71a963;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8420",
  "rgb": {
    "r": 42,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 114,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53996,
    "c": 0.15899,
    "h": 141.7
  },
  "luminance": 0.17099
}

Semantic roles & 50–950 ramp

primary
#2A8420
secondary
#AB4AB6
accent
#44E4D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A8420

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

Preview Lab → · Contrast checker → · Palette generator →

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