#2D7D1A#2D7D1A

#2D7D1A is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.153 H 140.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2D7D1A
RGBrgb(45, 125, 26)
HSLhsl(108, 66%, 30%)
HSVhsv(108, 79%, 49%)
CMYKcmyk(64%, 0%, 79.2%, 51%)
CIE-LABlab(46.04, -42.93, 43.52)
CIE-LCHlch(46.04, 61.13, 134.61°)
OKLaboklab(52.07% -0.1177 0.0975)
OKLCHoklch(52.07% 0.153 140.4)
XYZxyz(8.6019, 15.2989, 3.4768)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7D1A #6A1A7D
analogous
#5F7D1A #2D7D1A #1A7D39
triadic
#2D7D1A #1A2D7D #7D1A2D
tetradic
#2D7D1A #1A5F7D #6A1A7D #7D391A
square
#2D7D1A #1A5F7D #6A1A7D #7D391A
split-complementary
#2D7D1A #391A7D #7D1A5F
monochromatic
#091905 #1B4A0F #2D7D1A #3FB025 #59D63B

Accessibility & contrast

On white

5.17
#2D7D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2D7D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7D1A
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7D1A#FFFFFF#000000##FFFFFF
##2D7D1A1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817103
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#21796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7d1a;
/* rgb */ color: rgb(45, 125, 26);
/* oklch */ color: oklch(52.1% 0.153 140.4);
Tailwind
colors: {
  custom: {
    50: '#71a35f',
    500: '#2d7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #2d7d1a;
$custom-light: #71a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7d1a",
  "rgb": {
    "r": 45,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 108.485,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52068,
    "c": 0.15281,
    "h": 140.4
  },
  "luminance": 0.153
}

Semantic roles & 50–950 ramp

primary
#2D7D1A
secondary
#9C42B1
accent
#3FE9C8
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2D7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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