#2C7D21#2C7D21

#2C7D21 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.149 H 141.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2C7D21
RGBrgb(44, 125, 33)
HSLhsl(113, 58%, 31%)
HSVhsv(113, 74%, 49%)
CMYKcmyk(64.8%, 0%, 73.6%, 51%)
CIE-LABlab(46.06, -42.62, 40.85)
CIE-LCHlch(46.06, 59.04, 136.21°)
OKLaboklab(52.09% -0.1164 0.0929)
OKLCHoklch(52.09% 0.149 141.4)
XYZxyz(8.6464, 15.3117, 3.9383)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7D21 #72217D
analogous
#5A7D21 #2C7D21 #217D44
triadic
#2C7D21 #212C7D #7D212C
tetradic
#2C7D21 #215A7D #72217D #7D4421
square
#2C7D21 #215A7D #72217D #7D4421
split-complementary
#2C7D21 #44217D #7D215A
monochromatic
#0A1C07 #1B4D14 #2C7D21 #3DAD2E #59CF49

Accessibility & contrast

On white

5.17
#2C7D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2C7D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7D21
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7D21#FFFFFF#000000##FFFFFF
##2C7D211.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#766B2A
Tritanopia (blue-blind)
#1E796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2c7d21;
/* rgb */ color: rgb(44, 125, 33);
/* oklch */ color: oklch(52.1% 0.149 141.4);
Tailwind
colors: {
  custom: {
    50: '#70a362',
    500: '#2c7d21',
    950: '#000000',
  },
}
SCSS
$custom: #2c7d21;
$custom-light: #70a362;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7d21",
  "rgb": {
    "r": 44,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 112.826,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52089,
    "c": 0.14892,
    "h": 141.4
  },
  "luminance": 0.15313
}

Semantic roles & 50–950 ramp

primary
#2C7D21
secondary
#A44AB0
accent
#46E1CF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #2C7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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