#2D7B15#2D7B15

#2D7B15 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.153 H 139.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2D7B15
RGBrgb(45, 123, 21)
HSLhsl(106, 71%, 28%)
HSVhsv(106, 83%, 48%)
CMYKcmyk(63.4%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.33, -42.51, 44.51)
CIE-LCHlch(45.33, 61.55, 133.69°)
OKLaboklab(51.47% -0.1168 0.0988)
OKLCHoklch(51.47% 0.153 139.8)
XYZxyz(8.3001, 14.7772, 3.1242)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B15 #63157B
analogous
#607B15 #2D7B15 #157B30
triadic
#2D7B15 #152D7B #7B152D
tetradic
#2D7B15 #15607B #63157B #7B3015
square
#2D7B15 #15607B #63157B #7B3015
split-complementary
#2D7B15 #30157B #7B1560
monochromatic
#0A1A04 #1A470C #2D7B15 #40AF1E #58DB2F

Accessibility & contrast

On white

5.31
#2D7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#2D7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B15
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B15#FFFFFF#000000##FFFFFF
##2D7B151.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#237768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7b15;
/* rgb */ color: rgb(45, 123, 21);
/* oklch */ color: oklch(51.5% 0.153 139.8);
Tailwind
colors: {
  custom: {
    50: '#71a25c',
    500: '#2d7b15',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b15;
$custom-light: #71a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b15",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 105.882,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51469,
    "c": 0.153,
    "h": 139.8
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#2D7B15
secondary
#953BB0
accent
#3AEEC3
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2D7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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