#2D7928#2D7928

#2D7928 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.138 H 142.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2D7928
RGBrgb(45, 121, 40)
HSLhsl(116, 50%, 32%)
HSVhsv(116, 67%, 47%)
CMYKcmyk(62.8%, 0%, 66.9%, 52.5%)
CIE-LABlab(44.78, -40.14, 36.44)
CIE-LCHlch(44.78, 54.21, 137.76°)
OKLaboklab(51.06% -0.1093 0.0845)
OKLCHoklch(51.06% 0.138 142.3)
XYZxyz(8.3021, 14.3851, 4.3462)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7928 #742879
analogous
#567928 #2D7928 #28794C
triadic
#2D7928 #282D79 #79282D
tetradic
#2D7928 #285679 #742879 #794C28
square
#2D7928 #285679 #742879 #794C28
split-complementary
#2D7928 #4C2879 #792856
monochromatic
#0B1D0A #1C4B19 #2D7928 #3EA737 #5CC755

Accessibility & contrast

On white

5.42
#2D7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#2D7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7928
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7928#FFFFFF#000000##FFFFFF
##2D79281.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#72672F
Tritanopia (blue-blind)
#207568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2d7928;
/* rgb */ color: rgb(45, 121, 40);
/* oklch */ color: oklch(51.1% 0.138 142.3);
Tailwind
colors: {
  custom: {
    50: '#6fa066',
    500: '#2d7928',
    950: '#000000',
  },
}
SCSS
$custom: #2d7928;
$custom-light: #6fa066;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7928",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 116.296,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.51061,
    "c": 0.13817,
    "h": 142.3
  },
  "luminance": 0.14386
}

Semantic roles & 50–950 ramp

primary
#2D7928
secondary
#A552AB
accent
#4EDAD1
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #2D7928

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

Preview Lab → · Contrast checker → · Palette generator →

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