#2C7226#2C7226

#2C7226 is a mid, vivid green. Relative luminance 0.127; OKLCH L 49.0% C 0.131 H 142.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2C7226
RGBrgb(44, 114, 38)
HSLhsl(115, 50%, 30%)
HSVhsv(115, 67%, 45%)
CMYKcmyk(61.4%, 0%, 66.7%, 55.3%)
CIE-LABlab(42.32, -37.83, 34.65)
CIE-LCHlch(42.32, 51.30, 137.52°)
OKLaboklab(49.02% -0.1031 0.0805)
OKLCHoklch(49.02% 0.131 142)
XYZxyz(7.4055, 12.7094, 3.8962)
Luminance0.1271 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7226 #6C2672
analogous
#527226 #2C7226 #267246
triadic
#2C7226 #262C72 #72262C
tetradic
#2C7226 #265272 #6C2672 #724626
square
#2C7226 #265272 #6C2672 #724626
split-complementary
#2C7226 #462672 #722652
monochromatic
#091708 #1A4417 #2C7226 #3EA035 #58C44E

Accessibility & contrast

On white

5.93
#2C7226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2C7226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7226
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7226#FFFFFF#000000##FFFFFF
##2C72261.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75681D
Deuteranopia (green-blind)
#6C622C
Tritanopia (blue-blind)
#216F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7226;
/* rgb */ color: rgb(44, 114, 38);
/* oklch */ color: oklch(49.0% 0.131 142.0);
Tailwind
colors: {
  custom: {
    50: '#6e9b64',
    500: '#2c7226',
    950: '#000000',
  },
}
SCSS
$custom: #2c7226;
$custom-light: #6e9b64;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7226",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 115.263,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.49017,
    "c": 0.13081,
    "h": 142
  },
  "luminance": 0.1271
}

Semantic roles & 50–950 ramp

primary
#2C7226
secondary
#9E4FA5
accent
#4EDACF
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080E05
muted
#7B7E7A

Preview Lab

Preview with #2C7226

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

Preview Lab → · Contrast checker → · Palette generator →

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