#2D7E28#2D7E28

#2D7E28 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.5% C 0.145 H 142.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2D7E28
RGBrgb(45, 126, 40)
HSLhsl(117, 52%, 33%)
HSVhsv(117, 68%, 49%)
CMYKcmyk(64.3%, 0%, 68.3%, 50.6%)
CIE-LABlab(46.49, -42.08, 38.31)
CIE-LCHlch(46.49, 56.91, 137.68°)
OKLaboklab(52.47% -0.1146 0.0885)
OKLCHoklch(52.47% 0.145 142.3)
XYZxyz(8.9256, 15.6319, 4.5540)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E28 #79287E
analogous
#587E28 #2D7E28 #287E4E
triadic
#2D7E28 #282D7E #7E282D
tetradic
#2D7E28 #28587E #79287E #7E4E28
square
#2D7E28 #28587E #79287E #7E4E28
split-complementary
#2D7E28 #4E287E #7E2858
monochromatic
#0C210B #1C5019 #2D7E28 #3EAC37 #5DCA57

Accessibility & contrast

On white

5.09
#2D7E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2D7E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E28
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E28#FFFFFF#000000##FFFFFF
##2D7E281.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81721D
Deuteranopia (green-blind)
#776C30
Tritanopia (blue-blind)
#1E7A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e28;
/* rgb */ color: rgb(45, 126, 40);
/* oklch */ color: oklch(52.5% 0.145 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a466',
    500: '#2d7e28',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e28;
$custom-light: #70a466;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e28",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 116.512,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52472,
    "c": 0.14475,
    "h": 142.3
  },
  "luminance": 0.15633
}

Semantic roles & 50–950 ramp

primary
#2D7E28
secondary
#A953AF
accent
#4DDBD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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