#2D7A28#2D7A28

#2D7A28 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.140 H 142.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2D7A28
RGBrgb(45, 122, 40)
HSLhsl(116, 51%, 32%)
HSVhsv(116, 67%, 48%)
CMYKcmyk(63.1%, 0%, 67.2%, 52.2%)
CIE-LABlab(45.12, -40.53, 36.82)
CIE-LCHlch(45.12, 54.76, 137.75°)
OKLaboklab(51.34% -0.1104 0.0853)
OKLCHoklch(51.34% 0.14 142.3)
XYZxyz(8.4243, 14.6294, 4.3869)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7A28 #75287A
analogous
#567A28 #2D7A28 #287A4C
triadic
#2D7A28 #282D7A #7A282D
tetradic
#2D7A28 #28567A #75287A #7A4C28
square
#2D7A28 #28567A #75287A #7A4C28
split-complementary
#2D7A28 #4C287A #7A2856
monochromatic
#0B1E0A #1C4C19 #2D7A28 #3EA837 #5CC755

Accessibility & contrast

On white

5.35
#2D7A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2D7A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7A28
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7A28#FFFFFF#000000##FFFFFF
##2D7A281.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#207669
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7a28;
/* rgb */ color: rgb(45, 122, 40);
/* oklch */ color: oklch(51.3% 0.140 142.3);
Tailwind
colors: {
  custom: {
    50: '#70a166',
    500: '#2d7a28',
    950: '#000000',
  },
}
SCSS
$custom: #2d7a28;
$custom-light: #70a166;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7a28",
  "rgb": {
    "r": 45,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 116.341,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51344,
    "c": 0.1395,
    "h": 142.3
  },
  "luminance": 0.1463
}

Semantic roles & 50–950 ramp

primary
#2D7A28
secondary
#A652AC
accent
#4EDAD2
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D7A28

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

Preview Lab → · Contrast checker → · Palette generator →

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