#2D8418#2D8418

#2D8418 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.162 H 140.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2D8418
RGBrgb(45, 132, 24)
HSLhsl(108, 69%, 31%)
HSVhsv(108, 82%, 52%)
CMYKcmyk(65.9%, 0%, 81.8%, 48.2%)
CIE-LABlab(48.42, -45.64, 46.47)
CIE-LCHlch(48.42, 65.13, 134.49°)
OKLaboklab(54.03% -0.1251 0.1033)
OKLCHoklch(54.03% 0.162 140.4)
XYZxyz(9.4979, 17.1254, 3.6690)
Luminance0.1713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8418 #6F1884
analogous
#638418 #2D8418 #188439
triadic
#2D8418 #182D84 #84182D
tetradic
#2D8418 #186384 #6F1884 #843918
square
#2D8418 #186384 #6F1884 #843918
split-complementary
#2D8418 #391884 #841863
monochromatic
#0A1C05 #1B500F #2D8418 #3FB821 #5ADB3B

Accessibility & contrast

On white

4.75
#2D8418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2D8418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8418
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8418#FFFFFF#000000##FFFFFF
##2D84181.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#1F8070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2d8418;
/* rgb */ color: rgb(45, 132, 24);
/* oklch */ color: oklch(54.0% 0.162 140.4);
Tailwind
colors: {
  custom: {
    50: '#73a95f',
    500: '#2d8418',
    950: '#000000',
  },
}
SCSS
$custom: #2d8418;
$custom-light: #73a95f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8418",
  "rgb": {
    "r": 45,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 108.333,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54032,
    "c": 0.16224,
    "h": 140.4
  },
  "luminance": 0.17126
}

Semantic roles & 50–950 ramp

primary
#2D8418
secondary
#A140B8
accent
#3CECCA
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #2D8418

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

Preview Lab → · Contrast checker → · Palette generator →

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