#2A8B22#2A8B22

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

Color values

HEX#2A8B22
RGBrgb(42, 139, 34)
HSLhsl(115, 61%, 34%)
HSVhsv(115, 76%, 55%)
CMYKcmyk(69.8%, 0%, 75.5%, 45.5%)
CIE-LABlab(50.77, -48.08, 45.25)
CIE-LCHlch(50.77, 66.03, 136.73°)
OKLaboklab(55.98% -0.131 0.1023)
OKLCHoklch(55.98% 0.166 142)
XYZxyz(10.4756, 19.0719, 4.6422)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B22 #83228B
analogous
#5F8B22 #2A8B22 #228B4F
triadic
#2A8B22 #222A8B #8B222A
tetradic
#2A8B22 #225F8B #83228B #8B4F22
square
#2A8B22 #225F8B #83228B #8B4F22
split-complementary
#2A8B22 #4F228B #8B225F
monochromatic
#0C290A #1B5A16 #2A8B22 #39BC2E #5CD553

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8B22#FFFFFF#000000##000000
##2A8B221.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)
#8E7E0E
Deuteranopia (green-blind)
#83762D
Tritanopia (blue-blind)
#138777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8b22;
/* rgb */ color: rgb(42, 139, 34);
/* oklch */ color: oklch(56.0% 0.166 142.0);
Tailwind
colors: {
  custom: {
    50: '#72ae64',
    500: '#2a8b22',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b22;
$custom-light: #72ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b22",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 115.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55979,
    "c": 0.16617,
    "h": 142
  },
  "luminance": 0.19073
}

Semantic roles & 50–950 ramp

primary
#2A8B22
secondary
#B150B8
accent
#44E4D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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