#2D7C2F#2D7C2F

#2D7C2F is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.136 H 143.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2D7C2F
RGBrgb(45, 124, 47)
HSLhsl(122, 47%, 33%)
HSVhsv(122, 64%, 49%)
CMYKcmyk(63.7%, 0%, 62.1%, 51.4%)
CIE-LABlab(45.88, -40.49, 34.33)
CIE-LCHlch(45.88, 53.09, 139.71°)
OKLaboklab(51.99% -0.1099 0.0808)
OKLCHoklch(51.99% 0.136 143.7)
XYZxyz(8.8024, 15.1776, 5.1545)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7C2F #7C2D7A
analogous
#527C2D #2D7C2F #2D7C56
triadic
#2D7C2F #2F2D7C #7C2F2D
tetradic
#2D7C2F #2D527C #7C2D7A #7C562D
square
#2D7C2F #2D527C #7C2D7A #7C562D
split-complementary
#2D7C2F #562D7C #7C2D52
monochromatic
#0C220D #1D4F1E #2D7C2F #3DA940 #5FC561

Accessibility & contrast

On white

5.20
#2D7C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2D7C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7C2F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7C2F#FFFFFF#000000##FFFFFF
##2D7C2F1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7127
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#1D796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7c2f;
/* rgb */ color: rgb(45, 124, 47);
/* oklch */ color: oklch(52.0% 0.136 143.7);
Tailwind
colors: {
  custom: {
    50: '#70a36a',
    500: '#2d7c2f',
    950: '#000000',
  },
}
SCSS
$custom: #2d7c2f;
$custom-light: #70a36a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7c2f",
  "rgb": {
    "r": 45,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 121.519,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.51989,
    "c": 0.13638,
    "h": 143.7
  },
  "luminance": 0.15178
}

Semantic roles & 50–950 ramp

primary
#2D7C2F
secondary
#AB5AA9
accent
#51D3D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2D7C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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