#2A8952#2A8952

#2A8952 is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.1% C 0.122 H 153.8°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2A8952
RGBrgb(42, 137, 82)
HSLhsl(145, 53%, 35%)
HSVhsv(145, 69%, 54%)
CMYKcmyk(69.3%, 0%, 40.1%, 46.3%)
CIE-LABlab(50.68, -40.66, 21.69)
CIE-LCHlch(50.68, 46.08, 151.93°)
OKLaboklab(56.09% -0.1098 0.0541)
OKLCHoklch(56.09% 0.122 153.8)
XYZxyz(11.4225, 18.9915, 11.0448)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8952 #892A61
analogous
#31892A #2A8952 #2A8981
triadic
#2A8952 #522A89 #89522A
tetradic
#2A8952 #2A3189 #892A61 #89812A
square
#2A8952 #2A3189 #892A61 #89812A
split-complementary
#2A8952 #812A89 #892A31
monochromatic
#0D2B1A #1C5A36 #2A8952 #38B86E #5FCE8E

Accessibility & contrast

On white

4.38
#2A8952 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#2A8952 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8952
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8952#FFFFFF#000000##000000
##2A89521.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897E4E
Deuteranopia (green-blind)
#7D7556
Tritanopia (blue-blind)
#00877B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2a8952;
/* rgb */ color: rgb(42, 137, 82);
/* oklch */ color: oklch(56.1% 0.122 153.8);
Tailwind
colors: {
  custom: {
    50: '#70ac83',
    500: '#2a8952',
    950: '#000000',
  },
}
SCSS
$custom: #2a8952;
$custom-light: #70ac83;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8952",
  "rgb": {
    "r": 42,
    "g": 137,
    "b": 82
  },
  "hsl": {
    "h": 145.263,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56089,
    "c": 0.12242,
    "h": 153.8
  },
  "luminance": 0.18993
}

Semantic roles & 50–950 ramp

primary
#2A8952
secondary
#B45B8E
accent
#4B9FDC
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #2A8952

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

Preview Lab → · Contrast checker → · Palette generator →

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