#2C7A15#2C7A15

#2C7A15 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.152 H 139.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2C7A15
RGBrgb(44, 122, 21)
HSLhsl(106, 71%, 28%)
HSVhsv(106, 83%, 48%)
CMYKcmyk(63.9%, 0%, 82.8%, 52.2%)
CIE-LABlab(44.95, -42.40, 44.15)
CIE-LCHlch(44.95, 61.21, 133.84°)
OKLaboklab(51.15% -0.1165 0.098)
OKLCHoklch(51.15% 0.152 139.9)
XYZxyz(8.1332, 14.5079, 3.0810)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7A15 #63157A
analogous
#5E7A15 #2C7A15 #157A31
triadic
#2C7A15 #152C7A #7A152C
tetradic
#2C7A15 #155E7A #63157A #7A3115
square
#2C7A15 #155E7A #63157A #7A3115
split-complementary
#2C7A15 #31157A #7A155E
monochromatic
#091A04 #19460C #2C7A15 #3FAE1E #56DB2E

Accessibility & contrast

On white

5.38
#2C7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2C7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7A15
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7A15#FFFFFF#000000##FFFFFF
##2C7A151.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#746821
Tritanopia (blue-blind)
#217667
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2c7a15;
/* rgb */ color: rgb(44, 122, 21);
/* oklch */ color: oklch(51.1% 0.152 139.9);
Tailwind
colors: {
  custom: {
    50: '#70a15c',
    500: '#2c7a15',
    950: '#000000',
  },
}
SCSS
$custom: #2c7a15;
$custom-light: #70a15c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7a15",
  "rgb": {
    "r": 44,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 106.337,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5115,
    "c": 0.15223,
    "h": 139.9
  },
  "luminance": 0.14509
}

Semantic roles & 50–950 ramp

primary
#2C7A15
secondary
#953BAF
accent
#3AEDC5
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2C7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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