#2D8028#2D8028

#2D8028 is a mid, vivid green. Relative luminance 0.161; OKLCH L 53.0% C 0.147 H 142.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2D8028
RGBrgb(45, 128, 40)
HSLhsl(117, 52%, 33%)
HSVhsv(117, 69%, 50%)
CMYKcmyk(64.8%, 0%, 68.8%, 49.8%)
CIE-LABlab(47.17, -42.84, 39.05)
CIE-LCHlch(47.17, 57.97, 137.65°)
OKLaboklab(53.04% -0.1166 0.09)
OKLCHoklch(53.04% 0.147 142.3)
XYZxyz(9.1839, 16.1485, 4.6401)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8028 #7B2880
analogous
#598028 #2D8028 #28804F
triadic
#2D8028 #282D80 #80282D
tetradic
#2D8028 #285980 #7B2880 #804F28
square
#2D8028 #285980 #7B2880 #804F28
split-complementary
#2D8028 #4F2880 #802859
monochromatic
#0C230B #1D5119 #2D8028 #3DAF37 #5ECB58

Accessibility & contrast

On white

4.96
#2D8028 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2D8028 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8028
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8028#FFFFFF#000000##FFFFFF
##2D80281.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741C
Deuteranopia (green-blind)
#796D30
Tritanopia (blue-blind)
#1D7C6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2d8028;
/* rgb */ color: rgb(45, 128, 40);
/* oklch */ color: oklch(53.0% 0.147 142.3);
Tailwind
colors: {
  custom: {
    50: '#71a666',
    500: '#2d8028',
    950: '#000000',
  },
}
SCSS
$custom: #2d8028;
$custom-light: #71a666;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8028",
  "rgb": {
    "r": 45,
    "g": 128,
    "b": 40
  },
  "hsl": {
    "h": 116.591,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53035,
    "c": 0.14734,
    "h": 142.3
  },
  "luminance": 0.16149
}

Semantic roles & 50–950 ramp

primary
#2D8028
secondary
#AB54B0
accent
#4CDCD4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2D8028

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

Preview Lab → · Contrast checker → · Palette generator →

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