#2A7F50#2A7F50

#2A7F50 is a mid, moderate green. Relative luminance 0.163; OKLCH L 53.3% C 0.110 H 155.3°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2A7F50
RGBrgb(42, 127, 80)
HSLhsl(147, 50%, 33%)
HSVhsv(147, 67%, 50%)
CMYKcmyk(66.9%, 0%, 37%, 50.2%)
CIE-LABlab(47.30, -36.87, 18.31)
CIE-LCHlch(47.30, 41.17, 153.59°)
OKLaboklab(53.3% -0.0999 0.046)
OKLCHoklch(53.3% 0.11 155.3)
XYZxyz(9.9913, 16.2491, 10.1977)
Luminance0.1625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F50 #7F2A59
analogous
#2E7F2A #2A7F50 #2A7F7A
triadic
#2A7F50 #502A7F #7F502A
tetradic
#2A7F50 #2A2E7F #7F2A59 #7F7A2A
square
#2A7F50 #2A2E7F #7F2A59 #7F7A2A
split-complementary
#2A7F50 #7A2A7F #7F2A2E
monochromatic
#0C2316 #1B5133 #2A7F50 #39AD6D #5BC98C

Accessibility & contrast

On white

4.94
#2A7F50 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2A7F50 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F50
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F50#FFFFFF#000000##FFFFFF
##2A7F501.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754D
Deuteranopia (green-blind)
#736D53
Tritanopia (blue-blind)
#007E73
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a7f50;
/* rgb */ color: rgb(42, 127, 80);
/* oklch */ color: oklch(53.3% 0.110 155.3);
Tailwind
colors: {
  custom: {
    50: '#6ea581',
    500: '#2a7f50',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f50;
$custom-light: #6ea581;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f50",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 80
  },
  "hsl": {
    "h": 146.824,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53299,
    "c": 0.10998,
    "h": 155.3
  },
  "luminance": 0.1625
}

Semantic roles & 50–950 ramp

primary
#2A7F50
secondary
#AE5787
accent
#4E9BDA
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A7F50

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

Preview Lab → · Contrast checker → · Palette generator →

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