#2A7C52#2A7C52

#2A7C52 is a mid, moderate green. Relative luminance 0.155; OKLCH L 52.5% C 0.104 H 157.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7C52
RGBrgb(42, 124, 82)
HSLhsl(149, 49%, 33%)
HSVhsv(149, 66%, 49%)
CMYKcmyk(66.1%, 0%, 33.9%, 51.4%)
CIE-LABlab(46.33, -35.14, 15.86)
CIE-LCHlch(46.33, 38.55, 155.71°)
OKLaboklab(52.52% -0.0955 0.0401)
OKLCHoklch(52.52% 0.104 157.3)
XYZxyz(9.6846, 15.5157, 10.4655)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C52 #7C2A54
analogous
#2B7C2A #2A7C52 #2A7C7B
triadic
#2A7C52 #522A7C #7C522A
tetradic
#2A7C52 #2A2B7C #7C2A54 #7C7B2A
square
#2A7C52 #2A2B7C #7C2A54 #7C7B2A
split-complementary
#2A7C52 #7B2A7C #7C2A2B
monochromatic
#0B2116 #1B4E34 #2A7C52 #39AA70 #59C78F

Accessibility & contrast

On white

5.12
#2A7C52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7C52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C52
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C52#FFFFFF#000000##FFFFFF
##2A7C521.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B724F
Deuteranopia (green-blind)
#706B55
Tritanopia (blue-blind)
#007B71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7c52;
/* rgb */ color: rgb(42, 124, 82);
/* oklch */ color: oklch(52.5% 0.104 157.3);
Tailwind
colors: {
  custom: {
    50: '#6da283',
    500: '#2a7c52',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c52;
$custom-light: #6da283;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c52",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 82
  },
  "hsl": {
    "h": 149.268,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52518,
    "c": 0.1036,
    "h": 157.3
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#2A7C52
secondary
#AD5582
accent
#4F96D9
background
#F6FAF8
surface
#ECF4EF
border
#C7CECA
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #2A7C52

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

Preview Lab → · Contrast checker → · Palette generator →

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