#2D8218#2D8218

#2D8218 is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.5% C 0.160 H 140.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2D8218
RGBrgb(45, 130, 24)
HSLhsl(108, 69%, 30%)
HSVhsv(108, 82%, 51%)
CMYKcmyk(65.4%, 0%, 81.5%, 49%)
CIE-LABlab(47.74, -44.91, 45.82)
CIE-LCHlch(47.74, 64.16, 134.43°)
OKLaboklab(53.47% -0.1231 0.102)
OKLCHoklch(53.47% 0.16 140.4)
XYZxyz(9.2292, 16.5882, 3.5794)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8218 #6D1882
analogous
#628218 #2D8218 #188238
triadic
#2D8218 #182D82 #82182D
tetradic
#2D8218 #186282 #6D1882 #823818
square
#2D8218 #186282 #6D1882 #823818
split-complementary
#2D8218 #381882 #821862
monochromatic
#091B05 #1B4E0E #2D8218 #3FB622 #5ADB3A

Accessibility & contrast

On white

4.86
#2D8218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2D8218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8218
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8218#FFFFFF#000000##FFFFFF
##2D82181.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7B6F25
Tritanopia (blue-blind)
#207E6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2d8218;
/* rgb */ color: rgb(45, 130, 24);
/* oklch */ color: oklch(53.5% 0.160 140.4);
Tailwind
colors: {
  custom: {
    50: '#72a75e',
    500: '#2d8218',
    950: '#000000',
  },
}
SCSS
$custom: #2d8218;
$custom-light: #72a75e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8218",
  "rgb": {
    "r": 45,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 108.113,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53469,
    "c": 0.15989,
    "h": 140.4
  },
  "luminance": 0.16589
}

Semantic roles & 50–950 ramp

primary
#2D8218
secondary
#9F40B6
accent
#3CECC9
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D8218

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

Preview Lab → · Contrast checker → · Palette generator →

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