#2D7A52#2D7A52

#2D7A52 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.1% C 0.099 H 157.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2D7A52
RGBrgb(45, 122, 82)
HSLhsl(149, 46%, 33%)
HSVhsv(149, 63%, 48%)
CMYKcmyk(63.1%, 0%, 32.8%, 52.2%)
CIE-LABlab(45.75, -33.61, 15.08)
CIE-LCHlch(45.75, 36.83, 155.84°)
OKLaboklab(52.07% -0.0915 0.0382)
OKLCHoklch(52.07% 0.099 157.4)
XYZxyz(9.5639, 15.0852, 10.3887)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A52 #7A2D55
analogous
#2E7A2D #2D7A52 #2D7A78
triadic
#2D7A52 #522D7A #7A522D
tetradic
#2D7A52 #2D2E7A #7A2D55 #7A782D
square
#2D7A52 #2D2E7A #7A2D55 #7A782D
split-complementary
#2D7A52 #782D7A #7A2D2E
monochromatic
#0C2116 #1D4D34 #2D7A52 #3DA770 #5EC48F

Accessibility & contrast

On white

5.23
#2D7A52 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2D7A52 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A52
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A52#FFFFFF#000000##FFFFFF
##2D7A521.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#797150
Deuteranopia (green-blind)
#6F6955
Tritanopia (blue-blind)
#0A796F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7a52;
/* rgb */ color: rgb(45, 122, 82);
/* oklch */ color: oklch(52.1% 0.099 157.4);
Tailwind
colors: {
  custom: {
    50: '#6ea182',
    500: '#2d7a52',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a52;
$custom-light: #6ea182;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a52",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 82
  },
  "hsl": {
    "h": 148.831,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52065,
    "c": 0.09917,
    "h": 157.4
  },
  "luminance": 0.15086
}

Semantic roles & 50–950 ramp

primary
#2D7A52
secondary
#AA5983
accent
#5296D6
background
#F6FAF8
surface
#ECF3EF
border
#C7CDCA
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #2D7A52

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

Preview Lab → · Contrast checker → · Palette generator →

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