#2C7A45#2C7A45

#2C7A45 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.7% C 0.113 H 150.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2C7A45
RGBrgb(44, 122, 69)
HSLhsl(139, 47%, 33%)
HSVhsv(139, 64%, 48%)
CMYKcmyk(63.9%, 0%, 43.4%, 52.2%)
CIE-LABlab(45.47, -36.47, 22.14)
CIE-LCHlch(45.47, 42.67, 148.74°)
OKLaboklab(51.75% -0.0986 0.0548)
OKLCHoklch(51.75% 0.113 150.9)
XYZxyz(9.0717, 14.8833, 8.0238)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A45 #7A2C61
analogous
#3A7A2C #2C7A45 #2C7A6C
triadic
#2C7A45 #452C7A #7A452C
tetradic
#2C7A45 #2C3A7A #7A2C61 #7A6C2C
square
#2C7A45 #2C3A7A #7A2C61 #7A6C2C
split-complementary
#2C7A45 #6C2C7A #7A2C3A
monochromatic
#0C2012 #1C4D2C #2C7A45 #3CA75E #5CC47E

Accessibility & contrast

On white

5.28
#2C7A45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2C7A45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7A45
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7A45#FFFFFF#000000##FFFFFF
##2C7A451.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c7a45;
/* rgb */ color: rgb(44, 122, 69);
/* oklch */ color: oklch(51.7% 0.113 150.9);
Tailwind
colors: {
  custom: {
    50: '#6ea179',
    500: '#2c7a45',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a45;
$custom-light: #6ea179;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a45",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 69
  },
  "hsl": {
    "h": 139.231,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.51749,
    "c": 0.11277,
    "h": 150.9
  },
  "luminance": 0.14884
}

Semantic roles & 50–950 ramp

primary
#2C7A45
secondary
#AA5790
accent
#51ACD7
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2C7A45

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

Preview Lab → · Contrast checker → · Palette generator →

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