#2A8B20#2A8B20

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

Color values

HEX#2A8B20
RGBrgb(42, 139, 32)
HSLhsl(114, 63%, 34%)
HSVhsv(114, 77%, 55%)
CMYKcmyk(69.8%, 0%, 77%, 45.5%)
CIE-LABlab(50.76, -48.24, 45.98)
CIE-LCHlch(50.76, 66.64, 136.37°)
OKLaboklab(55.96% -0.1315 0.1035)
OKLCHoklch(55.96% 0.167 141.8)
XYZxyz(10.4476, 19.0607, 4.4947)
Luminance0.1906 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B20 #81208B
analogous
#5F8B20 #2A8B20 #208B4B
triadic
#2A8B20 #202A8B #8B202A
tetradic
#2A8B20 #205F8B #81208B #8B4B20
square
#2A8B20 #205F8B #81208B #8B4B20
split-complementary
#2A8B20 #4B208B #8B205F
monochromatic
#0C2809 #1B5915 #2A8B20 #39BD2B #5CD64F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8B20#FFFFFF#000000##000000
##2A8B201.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)
#8E7E09
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#138777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8b20;
/* rgb */ color: rgb(42, 139, 32);
/* oklch */ color: oklch(56.0% 0.167 141.8);
Tailwind
colors: {
  custom: {
    50: '#72ae63',
    500: '#2a8b20',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b20;
$custom-light: #72ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b20",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 32
  },
  "hsl": {
    "h": 114.393,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55964,
    "c": 0.16735,
    "h": 141.8
  },
  "luminance": 0.19062
}

Semantic roles & 50–950 ramp

primary
#2A8B20
secondary
#AF4DBA
accent
#42E6D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8B20

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

Preview Lab → · Contrast checker → · Palette generator →

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