#2D7B2A#2D7B2A

#2D7B2A is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.139 H 142.7°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2D7B2A
RGBrgb(45, 123, 42)
HSLhsl(118, 49%, 32%)
HSVhsv(118, 66%, 48%)
CMYKcmyk(63.4%, 0%, 65.9%, 51.8%)
CIE-LABlab(45.48, -40.70, 36.29)
CIE-LCHlch(45.48, 54.53, 138.28°)
OKLaboklab(51.65% -0.1107 0.0844)
OKLCHoklch(51.65% 0.139 142.7)
XYZxyz(8.5826, 14.8902, 4.6118)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B2A #782A7B
analogous
#557B2A #2D7B2A #2A7B50
triadic
#2D7B2A #2A2D7B #7B2A2D
tetradic
#2D7B2A #2A557B #782A7B #7B502A
square
#2D7B2A #2A557B #782A7B #7B502A
split-complementary
#2D7B2A #502A7B #7B2A55
monochromatic
#0C200B #1C4D1A #2D7B2A #3EA93A #5DC659

Accessibility & contrast

On white

5.28
#2D7B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2D7B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B2A
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B2A#FFFFFF#000000##FFFFFF
##2D7B2A1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7020
Deuteranopia (green-blind)
#746931
Tritanopia (blue-blind)
#1F776A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7b2a;
/* rgb */ color: rgb(45, 123, 42);
/* oklch */ color: oklch(51.6% 0.139 142.7);
Tailwind
colors: {
  custom: {
    50: '#70a267',
    500: '#2d7b2a',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b2a;
$custom-light: #70a267;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b2a",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 117.778,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51648,
    "c": 0.13922,
    "h": 142.7
  },
  "luminance": 0.14891
}

Semantic roles & 50–950 ramp

primary
#2D7B2A
secondary
#A955AC
accent
#4FD9D4
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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