#2D7815#2D7815

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

Color values

HEX#2D7815
RGBrgb(45, 120, 21)
HSLhsl(105, 70%, 28%)
HSVhsv(105, 83%, 47%)
CMYKcmyk(62.5%, 0%, 82.5%, 52.9%)
CIE-LABlab(44.30, -41.38, 43.54)
CIE-LCHlch(44.30, 60.07, 133.54°)
OKLaboklab(50.62% -0.1138 0.0968)
OKLCHoklch(50.62% 0.149 139.6)
XYZxyz(7.9337, 14.0442, 3.0020)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7815 #601578
analogous
#5E7815 #2D7815 #15782F
triadic
#2D7815 #152D78 #78152D
tetradic
#2D7815 #155E78 #601578 #782F15
square
#2D7815 #155E78 #601578 #782F15
split-complementary
#2D7815 #2F1578 #78155E
monochromatic
#0A1A05 #19440C #2D7815 #41AC1E #57DA2D

Accessibility & contrast

On white

5.51
#2D7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2D7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7815
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7815#FFFFFF#000000##FFFFFF
##2D78151.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6C00
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#237466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2d7815;
/* rgb */ color: rgb(45, 120, 21);
/* oklch */ color: oklch(50.6% 0.149 139.6);
Tailwind
colors: {
  custom: {
    50: '#70a05c',
    500: '#2d7815',
    950: '#000000',
  },
}
SCSS
$custom: #2d7815;
$custom-light: #70a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7815",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 105.455,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.50616,
    "c": 0.14938,
    "h": 139.6
  },
  "luminance": 0.14045
}

Semantic roles & 50–950 ramp

primary
#2D7815
secondary
#923BAE
accent
#3BEDC2
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F04
muted
#7B7E79

Preview Lab

Preview with #2D7815

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

Preview Lab → · Contrast checker → · Palette generator →

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