#2D7945#2D7945

#2D7945 is a mid, moderate green. Relative luminance 0.147; OKLCH L 51.5% C 0.111 H 150.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2D7945
RGBrgb(45, 121, 69)
HSLhsl(139, 46%, 33%)
HSVhsv(139, 63%, 47%)
CMYKcmyk(62.8%, 0%, 43%, 52.5%)
CIE-LABlab(45.17, -35.81, 21.75)
CIE-LCHlch(45.17, 41.90, 148.73°)
OKLaboklab(51.51% -0.0968 0.0539)
OKLCHoklch(51.51% 0.111 150.9)
XYZxyz(8.9931, 14.6614, 7.9851)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D7945 #792D61
analogous
#3B792D #2D7945 #2D796B
triadic
#2D7945 #452D79 #79452D
tetradic
#2D7945 #2D3B79 #792D61 #796B2D
square
#2D7945 #2D3B79 #792D61 #796B2D
split-complementary
#2D7945 #6B2D79 #792D3B
monochromatic
#0C2012 #1C4C2C #2D7945 #3EA65E #5DC37E

Accessibility & contrast

On white

5.34
#2D7945 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2D7945 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D7945
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D7945#FFFFFF#000000##FFFFFF
##2D79451.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F41
Deuteranopia (green-blind)
#706848
Tritanopia (blue-blind)
#15776C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2d7945;
/* rgb */ color: rgb(45, 121, 69);
/* oklch */ color: oklch(51.5% 0.111 150.9);
Tailwind
colors: {
  custom: {
    50: '#6ea079',
    500: '#2d7945',
    950: '#000000',
  },
}
SCSS
$custom: #2d7945;
$custom-light: #6ea079;
$custom-dark: #000000;
JSON
{
  "hex": "#2d7945",
  "rgb": {
    "r": 45,
    "g": 121,
    "b": 69
  },
  "hsl": {
    "h": 138.947,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.11081,
    "h": 150.9
  },
  "luminance": 0.14662
}

Semantic roles & 50–950 ramp

primary
#2D7945
secondary
#A95890
accent
#52ACD5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2D7945

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

Preview Lab → · Contrast checker → · Palette generator →

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