#2D8018#2D8018

#2D8018 is a mid, vivid green. Relative luminance 0.161; OKLCH L 52.9% C 0.158 H 140.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2D8018
RGBrgb(45, 128, 24)
HSLhsl(108, 68%, 30%)
HSVhsv(108, 81%, 50%)
CMYKcmyk(64.8%, 0%, 81.3%, 49.8%)
CIE-LABlab(47.05, -44.18, 45.17)
CIE-LCHlch(47.05, 63.19, 134.36°)
OKLaboklab(52.9% -0.1212 0.1006)
OKLCHoklch(52.9% 0.158 140.3)
XYZxyz(8.9658, 16.0613, 3.4916)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D8018 #6B1880
analogous
#618018 #2D8018 #188037
triadic
#2D8018 #182D80 #80182D
tetradic
#2D8018 #186180 #6B1880 #803718
square
#2D8018 #186180 #6B1880 #803718
split-complementary
#2D8018 #371880 #801861
monochromatic
#091A05 #1B4C0E #2D8018 #3FB422 #59DA39

Accessibility & contrast

On white

4.99
#2D8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2D8018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D8018
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D8018#FFFFFF#000000##FFFFFF
##2D80181.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#207C6D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2d8018;
/* rgb */ color: rgb(45, 128, 24);
/* oklch */ color: oklch(52.9% 0.158 140.3);
Tailwind
colors: {
  custom: {
    50: '#72a65e',
    500: '#2d8018',
    950: '#000000',
  },
}
SCSS
$custom: #2d8018;
$custom-light: #72a65e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d8018",
  "rgb": {
    "r": 45,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 107.885,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52904,
    "c": 0.15751,
    "h": 140.3
  },
  "luminance": 0.16062
}

Semantic roles & 50–950 ramp

primary
#2D8018
secondary
#9D40B4
accent
#3DEBC8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D8018

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

Preview Lab → · Contrast checker → · Palette generator →

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