#2C7D2A#2C7D2A

#2C7D2A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.142 H 142.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2C7D2A
RGBrgb(44, 125, 42)
HSLhsl(119, 50%, 33%)
HSVhsv(119, 66%, 49%)
CMYKcmyk(64.8%, 0%, 66.4%, 51%)
CIE-LABlab(46.14, -41.72, 37.01)
CIE-LCHlch(46.14, 55.77, 138.43°)
OKLaboklab(52.18% -0.1134 0.0859)
OKLCHoklch(52.18% 0.142 142.8)
XYZxyz(8.7897, 15.3690, 4.6933)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D2A #7B2A7D
analogous
#567D2A #2C7D2A #2A7D51
triadic
#2C7D2A #2A2C7D #7D2A2C
tetradic
#2C7D2A #2A567D #7B2A7D #7D512A
square
#2C7D2A #2A567D #7B2A7D #7D512A
split-complementary
#2C7D2A #512A7D #7D2A56
monochromatic
#0C210B #1C4F1B #2C7D2A #3CAB39 #5DC85A

Accessibility & contrast

On white

5.15
#2C7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2C7D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7D2A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7D2A#FFFFFF#000000##FFFFFF
##2C7D2A1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807120
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#1C796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7d2a;
/* rgb */ color: rgb(44, 125, 42);
/* oklch */ color: oklch(52.2% 0.142 142.8);
Tailwind
colors: {
  custom: {
    50: '#70a367',
    500: '#2c7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d2a;
$custom-light: #70a367;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d2a",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 118.554,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52178,
    "c": 0.1423,
    "h": 142.8
  },
  "luminance": 0.1537
}

Semantic roles & 50–950 ramp

primary
#2C7D2A
secondary
#AB56AD
accent
#4FD9D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #2C7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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