#2A8A2D#2A8A2D

#2A8A2D is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.157 H 143.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2A8A2D
RGBrgb(42, 138, 45)
HSLhsl(122, 53%, 35%)
HSVhsv(122, 70%, 54%)
CMYKcmyk(69.6%, 0%, 67.4%, 45.9%)
CIE-LABlab(50.52, -46.69, 40.46)
CIE-LCHlch(50.52, 61.78, 139.09°)
OKLaboklab(55.8% -0.1266 0.0936)
OKLCHoklch(55.8% 0.157 143.5)
XYZxyz(10.5163, 18.8575, 5.5678)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8A2D #8A2A87
analogous
#578A2A #2A8A2D #2A8A5D
triadic
#2A8A2D #2D2A8A #8A2D2A
tetradic
#2A8A2D #2A578A #8A2A87 #8A5D2A
square
#2A8A2D #2A578A #8A2A87 #8A5D2A
split-complementary
#2A8A2D #5D2A8A #8A2A57
monochromatic
#0D2C0E #1C5B1E #2A8A2D #38B93C #60CF63

Accessibility & contrast

On white

4.40
#2A8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2A8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8A2D
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8A2D#FFFFFF#000000##000000
##2A8A2D1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D21
Deuteranopia (green-blind)
#817535
Tritanopia (blue-blind)
#0F8677
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8a2d;
/* rgb */ color: rgb(42, 138, 45);
/* oklch */ color: oklch(55.8% 0.157 143.5);
Tailwind
colors: {
  custom: {
    50: '#72ad6a',
    500: '#2a8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #2a8a2d;
$custom-light: #72ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8a2d",
  "rgb": {
    "r": 42,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 121.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55799,
    "c": 0.15747,
    "h": 143.5
  },
  "luminance": 0.18859
}

Semantic roles & 50–950 ramp

primary
#2A8A2D
secondary
#B45BB2
accent
#4BD8DD
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #2A8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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