#2C7213#2C7213

#2C7213 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.9% C 0.143 H 139.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2C7213
RGBrgb(44, 114, 19)
HSLhsl(104, 71%, 26%)
HSVhsv(104, 83%, 45%)
CMYKcmyk(61.4%, 0%, 83.3%, 55.3%)
CIE-LABlab(42.18, -39.48, 42.18)
CIE-LCHlch(42.18, 57.77, 133.10°)
OKLaboklab(48.85% -0.1087 0.0936)
OKLCHoklch(48.85% 0.143 139.3)
XYZxyz(7.1733, 12.6165, 2.6732)
Luminance0.1262 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7213 #591372
analogous
#5B7213 #2C7213 #137229
triadic
#2C7213 #132C72 #72132C
tetradic
#2C7213 #135B72 #591372 #722913
square
#2C7213 #135B72 #591372 #722913
split-complementary
#2C7213 #291372 #72135B
monochromatic
#0A1A04 #183E0A #2C7213 #40A61C #55DB25

Accessibility & contrast

On white

5.96
#2C7213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2C7213 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C7213
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C7213#FFFFFF#000000##FFFFFF
##2C72131.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766700
Deuteranopia (green-blind)
#6D611E
Tritanopia (blue-blind)
#246E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7213;
/* rgb */ color: rgb(44, 114, 19);
/* oklch */ color: oklch(48.9% 0.143 139.3);
Tailwind
colors: {
  custom: {
    50: '#6f9b5a',
    500: '#2c7213',
    950: '#000000',
  },
}
SCSS
$custom: #2c7213;
$custom-light: #6f9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7213",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 104.211,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48853,
    "c": 0.14347,
    "h": 139.3
  },
  "luminance": 0.12617
}

Semantic roles & 50–950 ramp

primary
#2C7213
secondary
#8B38A9
accent
#3AEEBF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7213

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

Preview Lab → · Contrast checker → · Palette generator →

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