#1C7940#1C7940

#1C7940 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.123 H 151.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#1C7940
RGBrgb(28, 121, 64)
HSLhsl(143, 62%, 29%)
HSVhsv(143, 77%, 47%)
CMYKcmyk(76.9%, 0%, 47.1%, 52.5%)
CIE-LABlab(44.65, -40.11, 23.79)
CIE-LCHlch(44.65, 46.63, 149.33°)
OKLaboklab(50.93% -0.1079 0.0585)
OKLCHoklch(50.93% 0.123 151.6)
XYZxyz(8.2410, 14.2908, 7.1736)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C7940 #791C55
analogous
#27791C #1C7940 #1C796F
triadic
#1C7940 #401C79 #79401C
tetradic
#1C7940 #1C2779 #791C55 #796F1C
square
#1C7940 #1C2779 #791C55 #796F1C
split-complementary
#1C7940 #6F1C79 #791C27
monochromatic
#06190D #104726 #1C7940 #28AB5A #3DD277

Accessibility & contrast

On white

5.44
#1C7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#1C7940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1C7940
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C7940#FFFFFF#000000##FFFFFF
##1C79401.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6E6744
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1c7940;
/* rgb */ color: rgb(28, 121, 64);
/* oklch */ color: oklch(50.9% 0.123 151.6);
Tailwind
colors: {
  custom: {
    50: '#68a175',
    500: '#1c7940',
    950: '#000000',
  },
}
SCSS
$custom: #1c7940;
$custom-light: #68a175;
$custom-dark: #000000;
JSON
{
  "hex": "#1c7940",
  "rgb": {
    "r": 28,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 143.226,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50925,
    "c": 0.12271,
    "h": 151.6
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#1C7940
secondary
#AD4484
accent
#42A6E5
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1C7940

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

Preview Lab → · Contrast checker → · Palette generator →

#1C7940 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva