#1A7C42#1A7C42

#1A7C42 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.126 H 152.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1A7C42
RGBrgb(26, 124, 66)
HSLhsl(144, 65%, 29%)
HSVhsv(144, 79%, 49%)
CMYKcmyk(79%, 0%, 46.8%, 51.4%)
CIE-LABlab(45.67, -41.21, 23.98)
CIE-LCHlch(45.67, 47.69, 149.80°)
OKLaboklab(51.77% -0.1108 0.059)
OKLCHoklch(51.77% 0.126 152)
XYZxyz(8.6163, 15.0272, 7.5996)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7C42 #7C1A54
analogous
#237C1A #1A7C42 #1A7C73
triadic
#1A7C42 #421A7C #7C421A
tetradic
#1A7C42 #1A237C #7C1A54 #7C731A
square
#1A7C42 #1A237C #7C1A54 #7C731A
split-complementary
#1A7C42 #731A7C #7C1A23
monochromatic
#05190D #0F4927 #1A7C42 #25AF5D #3BD67A

Accessibility & contrast

On white

5.24
#1A7C42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1A7C42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7C42
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7C42#FFFFFF#000000##FFFFFF
##1A7C421.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C713E
Deuteranopia (green-blind)
#716946
Tritanopia (blue-blind)
#007A6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1a7c42;
/* rgb */ color: rgb(26, 124, 66);
/* oklch */ color: oklch(51.8% 0.126 152.0);
Tailwind
colors: {
  custom: {
    50: '#68a377',
    500: '#1a7c42',
    950: '#000000',
  },
}
SCSS
$custom: #1a7c42;
$custom-light: #68a377;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7c42",
  "rgb": {
    "r": 26,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 144.49,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.12554,
    "h": 152
  },
  "luminance": 0.15028
}

Semantic roles & 50–950 ramp

primary
#1A7C42
secondary
#B04283
accent
#40A3E8
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1A7C42

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

Preview Lab → · Contrast checker → · Palette generator →

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