#2D7218#2D7218

#2D7218 is a mid, vivid green. Relative luminance 0.127; OKLCH L 48.9% C 0.140 H 139.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2D7218
RGBrgb(45, 114, 24)
HSLhsl(106, 65%, 27%)
HSVhsv(106, 79%, 45%)
CMYKcmyk(60.5%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.24, -38.86, 40.52)
CIE-LCHlch(42.24, 56.15, 133.80°)
OKLaboklab(48.93% -0.1068 0.0909)
OKLCHoklch(48.93% 0.14 139.6)
XYZxyz(7.2641, 12.6578, 2.9244)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7218 #5D1872
analogous
#5A7218 #2D7218 #187230
triadic
#2D7218 #182D72 #72182D
tetradic
#2D7218 #185A72 #5D1872 #723018
square
#2D7218 #185A72 #5D1872 #723018
split-complementary
#2D7218 #301872 #72185A
monochromatic
#0A1905 #193F0D #2D7218 #41A523 #57D431

Accessibility & contrast

On white

5.95
#2D7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2D7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7218
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7218#FFFFFF#000000##FFFFFF
##2D72181.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#256E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2d7218;
/* rgb */ color: rgb(45, 114, 24);
/* oklch */ color: oklch(48.9% 0.140 139.6);
Tailwind
colors: {
  custom: {
    50: '#6f9b5c',
    500: '#2d7218',
    950: '#000000',
  },
}
SCSS
$custom: #2d7218;
$custom-light: #6f9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7218",
  "rgb": {
    "r": 45,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 106,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48925,
    "c": 0.14029,
    "h": 139.6
  },
  "luminance": 0.12658
}

Semantic roles & 50–950 ramp

primary
#2D7218
secondary
#8F3EA7
accent
#40E8C1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2D7218

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

Preview Lab → · Contrast checker → · Palette generator →

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