#2D7A2A#2D7A2A

#2D7A2A is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.138 H 142.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2D7A2A
RGBrgb(45, 122, 42)
HSLhsl(118, 49%, 32%)
HSVhsv(118, 66%, 48%)
CMYKcmyk(63.1%, 0%, 65.6%, 52.2%)
CIE-LABlab(45.14, -40.30, 35.91)
CIE-LCHlch(45.14, 53.98, 138.30°)
OKLaboklab(51.37% -0.1096 0.0836)
OKLCHoklch(51.37% 0.138 142.7)
XYZxyz(8.4592, 14.6433, 4.5707)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A2A #772A7A
analogous
#557A2A #2D7A2A #2A7A4F
triadic
#2D7A2A #2A2D7A #7A2A2D
tetradic
#2D7A2A #2A557A #772A7A #7A4F2A
square
#2D7A2A #2A557A #772A7A #7A4F2A
split-complementary
#2D7A2A #4F2A7A #7A2A55
monochromatic
#0B1F0B #1C4C1A #2D7A2A #3EA83A #5DC659

Accessibility & contrast

On white

5.35
#2D7A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2D7A2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A2A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A2A#FFFFFF#000000##FFFFFF
##2D7A2A1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F21
Deuteranopia (green-blind)
#736831
Tritanopia (blue-blind)
#1F7669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7a2a;
/* rgb */ color: rgb(45, 122, 42);
/* oklch */ color: oklch(51.4% 0.138 142.7);
Tailwind
colors: {
  custom: {
    50: '#70a167',
    500: '#2d7a2a',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a2a;
$custom-light: #70a167;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a2a",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 117.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.13788,
    "h": 142.7
  },
  "luminance": 0.14644
}

Semantic roles & 50–950 ramp

primary
#2D7A2A
secondary
#A855AB
accent
#4FD8D3
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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