#2C7B15#2C7B15

#2C7B15 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.153 H 140.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2C7B15
RGBrgb(44, 123, 21)
HSLhsl(106, 71%, 28%)
HSVhsv(106, 83%, 48%)
CMYKcmyk(64.2%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.30, -42.77, 44.47)
CIE-LCHlch(45.30, 61.70, 133.88°)
OKLaboklab(51.43% -0.1175 0.0987)
OKLCHoklch(51.43% 0.153 140)
XYZxyz(8.2566, 14.7548, 3.1222)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7B15 #64157B
analogous
#5F7B15 #2C7B15 #157B31
triadic
#2C7B15 #152C7B #7B152C
tetradic
#2C7B15 #155F7B #64157B #7B3115
square
#2C7B15 #155F7B #64157B #7B3115
split-complementary
#2C7B15 #31157B #7B155F
monochromatic
#091A04 #19470C #2C7B15 #3FAF1E #56DB2F

Accessibility & contrast

On white

5.31
#2C7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2C7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7B15
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7B15#FFFFFF#000000##FFFFFF
##2C7B151.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#217768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2c7b15;
/* rgb */ color: rgb(44, 123, 21);
/* oklch */ color: oklch(51.4% 0.153 140.0);
Tailwind
colors: {
  custom: {
    50: '#70a25c',
    500: '#2c7b15',
    950: '#000000',
  },
}
SCSS
$custom: #2c7b15;
$custom-light: #70a25c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7b15",
  "rgb": {
    "r": 44,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 106.471,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.15343,
    "h": 140
  },
  "luminance": 0.14756
}

Semantic roles & 50–950 ramp

primary
#2C7B15
secondary
#963BB0
accent
#3AEEC5
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #2C7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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