#2D7B45#2D7B45

#2D7B45 is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.1% C 0.114 H 150.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2D7B45
RGBrgb(45, 123, 69)
HSLhsl(138, 46%, 33%)
HSVhsv(138, 63%, 48%)
CMYKcmyk(63.4%, 0%, 43.9%, 51.8%)
CIE-LABlab(45.84, -36.67, 22.63)
CIE-LCHlch(45.84, 43.09, 148.33°)
OKLaboklab(52.06% -0.0991 0.0559)
OKLCHoklch(52.06% 0.114 150.6)
XYZxyz(9.2386, 15.1526, 8.0669)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7B45 #7B2D63
analogous
#3C7B2D #2D7B45 #2D7B6C
triadic
#2D7B45 #452D7B #7B452D
tetradic
#2D7B45 #2D3C7B #7B2D63 #7B6C2D
square
#2D7B45 #2D3C7B #7B2D63 #7B6C2D
split-complementary
#2D7B45 #6C2D7B #7B2D3C
monochromatic
#0C2113 #1D4E2C #2D7B45 #3DA85E #5EC47E

Accessibility & contrast

On white

5.21
#2D7B45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2D7B45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7B45
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7B45#FFFFFF#000000##FFFFFF
##2D7B451.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C7141
Deuteranopia (green-blind)
#716A49
Tritanopia (blue-blind)
#14796E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2d7b45;
/* rgb */ color: rgb(45, 123, 69);
/* oklch */ color: oklch(52.1% 0.114 150.6);
Tailwind
colors: {
  custom: {
    50: '#6fa279',
    500: '#2d7b45',
    950: '#000000',
  },
}
SCSS
$custom: #2d7b45;
$custom-light: #6fa279;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7b45",
  "rgb": {
    "r": 45,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 138.462,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52061,
    "c": 0.11379,
    "h": 150.6
  },
  "luminance": 0.15153
}

Semantic roles & 50–950 ramp

primary
#2D7B45
secondary
#AB5992
accent
#52ADD6
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2D7B45

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

Preview Lab → · Contrast checker → · Palette generator →

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