#2C7215#2C7215

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

Color values

HEX#2C7215
RGBrgb(44, 114, 21)
HSLhsl(105, 69%, 26%)
HSVhsv(105, 82%, 45%)
CMYKcmyk(61.4%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.19, -39.35, 41.53)
CIE-LCHlch(42.19, 57.21, 133.46°)
OKLaboklab(48.87% -0.1083 0.0926)
OKLCHoklch(48.87% 0.142 139.5)
XYZxyz(7.1911, 12.6236, 2.7670)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C7215 #5B1572
analogous
#5B7215 #2C7215 #15722D
triadic
#2C7215 #152C72 #72152C
tetradic
#2C7215 #155B72 #5B1572 #722D15
square
#2C7215 #155B72 #5B1572 #722D15
split-complementary
#2C7215 #2D1572 #72155B
monochromatic
#0A1A05 #183E0B #2C7215 #40A61F #55D82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C7215#FFFFFF#000000##FFFFFF
##2C72151.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)
#756700
Deuteranopia (green-blind)
#6D6120
Tritanopia (blue-blind)
#246E61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2c7215;
/* rgb */ color: rgb(44, 114, 21);
/* oklch */ color: oklch(48.9% 0.142 139.5);
Tailwind
colors: {
  custom: {
    50: '#6f9b5b',
    500: '#2c7215',
    950: '#000000',
  },
}
SCSS
$custom: #2c7215;
$custom-light: #6f9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c7215",
  "rgb": {
    "r": 44,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 105.161,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48866,
    "c": 0.14244,
    "h": 139.5
  },
  "luminance": 0.12624
}

Semantic roles & 50–950 ramp

primary
#2C7215
secondary
#8D3BA8
accent
#3CECC0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2C7215

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

Preview Lab → · Contrast checker → · Palette generator →

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