#2D7C28#2D7C28

#2D7C28 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.9% C 0.142 H 142.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2D7C28
RGBrgb(45, 124, 40)
HSLhsl(116, 51%, 32%)
HSVhsv(116, 68%, 49%)
CMYKcmyk(63.7%, 0%, 67.7%, 51.4%)
CIE-LABlab(45.81, -41.31, 37.57)
CIE-LCHlch(45.81, 55.84, 137.71°)
OKLaboklab(51.91% -0.1125 0.0869)
OKLCHoklch(51.91% 0.142 142.3)
XYZxyz(8.6724, 15.1256, 4.4696)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7C28 #77287C
analogous
#577C28 #2D7C28 #287C4D
triadic
#2D7C28 #282D7C #7C282D
tetradic
#2D7C28 #28577C #77287C #7C4D28
square
#2D7C28 #28577C #77287C #7C4D28
split-complementary
#2D7C28 #4D287C #7C2857
monochromatic
#0B1F0A #1C4E19 #2D7C28 #3EAA37 #5DC856

Accessibility & contrast

On white

5.22
#2D7C28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2D7C28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7C28
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7C28#FFFFFF#000000##FFFFFF
##2D7C281.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711D
Deuteranopia (green-blind)
#756A2F
Tritanopia (blue-blind)
#1F786B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2d7c28;
/* rgb */ color: rgb(45, 124, 40);
/* oklch */ color: oklch(51.9% 0.142 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a366',
    500: '#2d7c28',
    950: '#000000',
  },
}
SCSS
$custom: #2d7c28;
$custom-light: #70a366;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7c28",
  "rgb": {
    "r": 45,
    "g": 124,
    "b": 40
  },
  "hsl": {
    "h": 116.429,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51908,
    "c": 0.14214,
    "h": 142.3
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#2D7C28
secondary
#A852AD
accent
#4DDBD2
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7C28

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

Preview Lab → · Contrast checker → · Palette generator →

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