#2C6817#2C6817

#2C6817 is a mid, vivid green. Relative luminance 0.105; OKLCH L 46.0% C 0.128 H 139.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2C6817
RGBrgb(44, 104, 23)
HSLhsl(104, 64%, 25%)
HSVhsv(104, 78%, 41%)
CMYKcmyk(57.7%, 0%, 77.9%, 59.2%)
CIE-LABlab(38.72, -35.21, 37.40)
CIE-LCHlch(38.72, 51.37, 133.27°)
OKLaboklab(46.01% -0.097 0.0843)
OKLCHoklch(46.01% 0.128 139)
XYZxyz(6.1434, 10.4975, 2.5129)
Luminance0.1050 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C6817 #531768
analogous
#556817 #2C6817 #17682A
triadic
#2C6817 #172C68 #68172C
tetradic
#2C6817 #175568 #531768 #682A17
square
#2C6817 #175568 #531768 #682A17
split-complementary
#2C6817 #2A1768 #681755
monochromatic
#0B1906 #17360C #2C6817 #419A22 #56CC2D

Accessibility & contrast

On white

6.78
#2C6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2C6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C6817
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C6817#FFFFFF#000000##FFFFFF
##2C68171.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E07
Deuteranopia (green-blind)
#64591F
Tritanopia (blue-blind)
#266458
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2c6817;
/* rgb */ color: rgb(44, 104, 23);
/* oklch */ color: oklch(46.0% 0.128 139.0);
Tailwind
colors: {
  custom: {
    50: '#6d945a',
    500: '#2c6817',
    950: '#000000',
  },
}
SCSS
$custom: #2c6817;
$custom-light: #6d945a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c6817",
  "rgb": {
    "r": 44,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 104.444,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46006,
    "c": 0.12847,
    "h": 139
  },
  "luminance": 0.10498
}

Semantic roles & 50–950 ramp

primary
#2C6817
secondary
#853D9E
accent
#41E7BC
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #2C6817

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

Preview Lab → · Contrast checker → · Palette generator →

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