#2A8F20#2A8F20

#2A8F20 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.1% C 0.172 H 141.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2A8F20
RGBrgb(42, 143, 32)
HSLhsl(115, 63%, 34%)
HSVhsv(115, 78%, 56%)
CMYKcmyk(70.6%, 0%, 77.6%, 43.9%)
CIE-LABlab(52.11, -49.63, 47.31)
CIE-LCHlch(52.11, 68.57, 136.37°)
OKLaboklab(57.08% -0.1353 0.1063)
OKLCHoklch(57.08% 0.172 141.8)
XYZxyz(11.0374, 20.2403, 4.6913)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8F20 #85208F
analogous
#628F20 #2A8F20 #208F4E
triadic
#2A8F20 #202A8F #8F202A
tetradic
#2A8F20 #20628F #85208F #8F4E20
square
#2A8F20 #20628F #85208F #8F4E20
split-complementary
#2A8F20 #4E208F #8F2062
monochromatic
#0D2B0A #1B5D15 #2A8F20 #39C12B #5DD851

Accessibility & contrast

On white

4.16
#2A8F20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#2A8F20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8F20
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8F20#FFFFFF#000000##000000
##2A8F201.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938106
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#118A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #2a8f20;
/* rgb */ color: rgb(42, 143, 32);
/* oklch */ color: oklch(57.1% 0.172 141.8);
Tailwind
colors: {
  custom: {
    50: '#73b164',
    500: '#2a8f20',
    950: '#000000',
  },
}
SCSS
$custom: #2a8f20;
$custom-light: #73b164;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8f20",
  "rgb": {
    "r": 42,
    "g": 143,
    "b": 32
  },
  "hsl": {
    "h": 114.595,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.57084,
    "c": 0.17202,
    "h": 141.8
  },
  "luminance": 0.20241
}

Semantic roles & 50–950 ramp

primary
#2A8F20
secondary
#B24FBB
accent
#41E6D8
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #2A8F20

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

Preview Lab → · Contrast checker → · Palette generator →

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