#2A8520#2A8520

#2A8520 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.160 H 141.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2A8520
RGBrgb(42, 133, 32)
HSLhsl(114, 61%, 32%)
HSVhsv(114, 76%, 52%)
CMYKcmyk(68.4%, 0%, 75.9%, 47.8%)
CIE-LABlab(48.72, -46.11, 43.95)
CIE-LCHlch(48.72, 63.70, 136.37°)
OKLaboklab(54.28% -0.1257 0.0993)
OKLCHoklch(54.28% 0.16 141.7)
XYZxyz(9.6026, 17.3706, 4.2130)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8520 #7B2085
analogous
#5D8520 #2A8520 #208548
triadic
#2A8520 #202A85 #85202A
tetradic
#2A8520 #205D85 #7B2085 #854820
square
#2A8520 #205D85 #7B2085 #854820
split-complementary
#2A8520 #482085 #85205D
monochromatic
#0B2208 #1A5414 #2A8520 #3AB62C #59D44C

Accessibility & contrast

On white

4.69
#2A8520 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2A8520 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8520
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8520#FFFFFF#000000##FFFFFF
##2A85201.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#7E712B
Tritanopia (blue-blind)
#178171
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8520;
/* rgb */ color: rgb(42, 133, 32);
/* oklch */ color: oklch(54.3% 0.160 141.7);
Tailwind
colors: {
  custom: {
    50: '#71a963',
    500: '#2a8520',
    950: '#000000',
  },
}
SCSS
$custom: #2a8520;
$custom-light: #71a963;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8520",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 114.059,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.54278,
    "c": 0.1602,
    "h": 141.7
  },
  "luminance": 0.17372
}

Semantic roles & 50–950 ramp

primary
#2A8520
secondary
#AC4AB7
accent
#43E4D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #2A8520

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

Preview Lab → · Contrast checker → · Palette generator →

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