#2A8022#2A8022

#2A8022 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.153 H 141.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2A8022
RGBrgb(42, 128, 34)
HSLhsl(115, 58%, 32%)
HSVhsv(115, 73%, 50%)
CMYKcmyk(67.2%, 0%, 73.4%, 49.8%)
CIE-LABlab(47.03, -44.12, 41.44)
CIE-LCHlch(47.03, 60.53, 136.79°)
OKLaboklab(52.88% -0.1202 0.0943)
OKLCHoklch(52.88% 0.153 141.9)
XYZxyz(8.9623, 16.0452, 4.1378)
Luminance0.1605 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8022 #782280
analogous
#598022 #2A8022 #228049
triadic
#2A8022 #222A80 #80222A
tetradic
#2A8022 #225980 #782280 #804922
square
#2A8022 #225980 #782280 #804922
split-complementary
#2A8022 #492280 #802259
monochromatic
#0A1F08 #1A5015 #2A8022 #3AB02F #58D04D

Accessibility & contrast

On white

4.99
#2A8022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2A8022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8022
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8022#FFFFFF#000000##FFFFFF
##2A80221.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837413
Deuteranopia (green-blind)
#796D2B
Tritanopia (blue-blind)
#197C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2a8022;
/* rgb */ color: rgb(42, 128, 34);
/* oklch */ color: oklch(52.9% 0.153 141.9);
Tailwind
colors: {
  custom: {
    50: '#70a663',
    500: '#2a8022',
    950: '#000000',
  },
}
SCSS
$custom: #2a8022;
$custom-light: #70a663;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8022",
  "rgb": {
    "r": 42,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 114.894,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.52883,
    "c": 0.15281,
    "h": 141.9
  },
  "luminance": 0.16046
}

Semantic roles & 50–950 ramp

primary
#2A8022
secondary
#AA4BB2
accent
#47E1D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2A8022

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

Preview Lab → · Contrast checker → · Palette generator →

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