#2E7A45#2E7A45

#2E7A45 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.8% C 0.112 H 150.5°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2E7A45
RGBrgb(46, 122, 69)
HSLhsl(138, 45%, 33%)
HSVhsv(138, 62%, 48%)
CMYKcmyk(62.3%, 0%, 43.4%, 52.2%)
CIE-LABlab(45.54, -36.01, 22.23)
CIE-LCHlch(45.54, 42.32, 148.31°)
OKLaboklab(51.82% -0.0974 0.055)
OKLCHoklch(51.82% 0.112 150.5)
XYZxyz(9.1597, 14.9287, 8.0279)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E7A45 #7A2E63
analogous
#3D7A2E #2E7A45 #2E7A6B
triadic
#2E7A45 #452E7A #7A452E
tetradic
#2E7A45 #2E3D7A #7A2E63 #7A6B2E
square
#2E7A45 #2E3D7A #7A2E63 #7A6B2E
split-complementary
#2E7A45 #6B2E7A #7A2E3D
monochromatic
#0C2113 #1D4E2C #2E7A45 #3FA65E #60C37E

Accessibility & contrast

On white

5.27
#2E7A45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2E7A45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E7A45
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E7A45#FFFFFF#000000##FFFFFF
##2E7A451.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B7041
Deuteranopia (green-blind)
#716948
Tritanopia (blue-blind)
#17786D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2e7a45;
/* rgb */ color: rgb(46, 122, 69);
/* oklch */ color: oklch(51.8% 0.112 150.5);
Tailwind
colors: {
  custom: {
    50: '#6fa179',
    500: '#2e7a45',
    950: '#000000',
  },
}
SCSS
$custom: #2e7a45;
$custom-light: #6fa179;
$custom-dark: #000000;
JSON
{
  "hex": "#2e7a45",
  "rgb": {
    "r": 46,
    "g": 122,
    "b": 69
  },
  "hsl": {
    "h": 138.158,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.51818,
    "c": 0.11182,
    "h": 150.5
  },
  "luminance": 0.1493
}

Semantic roles & 50–950 ramp

primary
#2E7A45
secondary
#AA5A92
accent
#53AED5
background
#F7FAF7
surface
#EDF3ED
border
#C8CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2E7A45

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

Preview Lab → · Contrast checker → · Palette generator →

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