#2D7E18#2D7E18

#2D7E18 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.155 H 140.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#2D7E18
RGBrgb(45, 126, 24)
HSLhsl(108, 68%, 29%)
HSVhsv(108, 81%, 49%)
CMYKcmyk(64.3%, 0%, 81%, 50.6%)
CIE-LABlab(46.37, -43.44, 44.52)
CIE-LCHlch(46.37, 62.20, 134.30°)
OKLaboklab(52.34% -0.1192 0.0993)
OKLCHoklch(52.34% 0.155 140.2)
XYZxyz(8.7075, 15.5447, 3.4055)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7E18 #69187E
analogous
#607E18 #2D7E18 #187E36
triadic
#2D7E18 #182D7E #7E182D
tetradic
#2D7E18 #18607E #69187E #7E3618
square
#2D7E18 #18607E #69187E #7E3618
split-complementary
#2D7E18 #36187E #7E1860
monochromatic
#091A05 #1B4B0E #2D7E18 #3FB122 #59D937

Accessibility & contrast

On white

5.11
#2D7E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#2D7E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7E18
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7E18#FFFFFF#000000##FFFFFF
##2D7E181.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#217A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2d7e18;
/* rgb */ color: rgb(45, 126, 24);
/* oklch */ color: oklch(52.3% 0.155 140.2);
Tailwind
colors: {
  custom: {
    50: '#71a45e',
    500: '#2d7e18',
    950: '#000000',
  },
}
SCSS
$custom: #2d7e18;
$custom-light: #71a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7e18",
  "rgb": {
    "r": 45,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 107.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.1551,
    "h": 140.2
  },
  "luminance": 0.15546
}

Semantic roles & 50–950 ramp

primary
#2D7E18
secondary
#9B3FB2
accent
#3DEBC7
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #2D7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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