#2A7F52#2A7F52

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

Color values

HEX#2A7F52
RGBrgb(42, 127, 82)
HSLhsl(148, 50%, 33%)
HSVhsv(148, 67%, 50%)
CMYKcmyk(66.9%, 0%, 35.4%, 50.2%)
CIE-LABlab(47.34, -36.45, 17.22)
CIE-LCHlch(47.34, 40.31, 154.71°)
OKLaboklab(53.34% -0.0989 0.0434)
OKLCHoklch(53.34% 0.108 156.3)
XYZxyz(10.0663, 16.2791, 10.5927)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7F52 #7F2A57
analogous
#2C7F2A #2A7F52 #2A7F7C
triadic
#2A7F52 #522A7F #7F522A
tetradic
#2A7F52 #2A2C7F #7F2A57 #7F7C2A
square
#2A7F52 #2A2C7F #7F2A57 #7F7C2A
split-complementary
#2A7F52 #7C2A7F #7F2A2C
monochromatic
#0C2317 #1B5134 #2A7F52 #39AD70 #5BC98E

Accessibility & contrast

On white

4.93
#2A7F52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#2A7F52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7F52
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7F52#FFFFFF#000000##FFFFFF
##2A7F521.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a7f52;
/* rgb */ color: rgb(42, 127, 82);
/* oklch */ color: oklch(53.3% 0.108 156.3);
Tailwind
colors: {
  custom: {
    50: '#6ea583',
    500: '#2a7f52',
    950: '#000000',
  },
}
SCSS
$custom: #2a7f52;
$custom-light: #6ea583;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7f52",
  "rgb": {
    "r": 42,
    "g": 127,
    "b": 82
  },
  "hsl": {
    "h": 148.235,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53343,
    "c": 0.108,
    "h": 156.3
  },
  "luminance": 0.1628
}

Semantic roles & 50–950 ramp

primary
#2A7F52
secondary
#AE5785
accent
#4E98DA
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#080F0A
muted
#7B7F7C

Preview Lab

Preview with #2A7F52

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

Preview Lab → · Contrast checker → · Palette generator →

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