#2A8252#2A8252

#2A8252 is a mid, moderate green. Relative luminance 0.171; OKLCH L 54.2% C 0.112 H 155.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8252
RGBrgb(42, 130, 82)
HSLhsl(147, 51%, 34%)
HSVhsv(147, 68%, 51%)
CMYKcmyk(67.7%, 0%, 36.9%, 49%)
CIE-LABlab(48.34, -37.73, 18.57)
CIE-LCHlch(48.34, 42.06, 153.79°)
OKLaboklab(54.17% -0.1022 0.0466)
OKLCHoklch(54.17% 0.112 155.5)
XYZxyz(10.4595, 17.0656, 10.7238)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8252 #822A5A
analogous
#2E822A #2A8252 #2A827E
triadic
#2A8252 #522A82 #82522A
tetradic
#2A8252 #2A2E82 #822A5A #827E2A
square
#2A8252 #2A2E82 #822A5A #827E2A
split-complementary
#2A8252 #7E2A82 #822A2E
monochromatic
#0C2518 #1B5435 #2A8252 #39B06F #5CCA8E

Accessibility & contrast

On white

4.76
#2A8252 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#2A8252 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8252
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8252#FFFFFF#000000##FFFFFF
##2A82521.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81784F
Deuteranopia (green-blind)
#767055
Tritanopia (blue-blind)
#008176
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8252;
/* rgb */ color: rgb(42, 130, 82);
/* oklch */ color: oklch(54.2% 0.112 155.5);
Tailwind
colors: {
  custom: {
    50: '#6fa783',
    500: '#2a8252',
    950: '#000000',
  },
}
SCSS
$custom: #2a8252;
$custom-light: #6fa783;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8252",
  "rgb": {
    "r": 42,
    "g": 130,
    "b": 82
  },
  "hsl": {
    "h": 147.273,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54168,
    "c": 0.11237,
    "h": 155.5
  },
  "luminance": 0.17067
}

Semantic roles & 50–950 ramp

primary
#2A8252
secondary
#B05888
accent
#4D9ADB
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A8252

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

Preview Lab → · Contrast checker → · Palette generator →

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