#1A7942#1A7942

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

Color values

HEX#1A7942
RGBrgb(26, 121, 66)
HSLhsl(145, 65%, 29%)
HSVhsv(145, 79%, 47%)
CMYKcmyk(78.5%, 0%, 45.5%, 52.5%)
CIE-LABlab(44.64, -40.04, 22.66)
CIE-LCHlch(44.64, 46.00, 150.50°)
OKLaboklab(50.92% -0.1077 0.0559)
OKLCHoklch(50.92% 0.121 152.6)
XYZxyz(8.2460, 14.2867, 7.4762)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7942 #791A51
analogous
#22791A #1A7942 #1A7972
triadic
#1A7942 #421A79 #79421A
tetradic
#1A7942 #1A2279 #791A51 #79721A
square
#1A7942 #1A2279 #791A51 #79721A
split-complementary
#1A7942 #721A79 #791A22
monochromatic
#05190E #0F4727 #1A7942 #25AB5D #39D47A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A7942#FFFFFF#000000##FFFFFF
##1A79421.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)
#796E3E
Deuteranopia (green-blind)
#6E6646
Tritanopia (blue-blind)
#00776C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1a7942;
/* rgb */ color: rgb(26, 121, 66);
/* oklch */ color: oklch(50.9% 0.121 152.6);
Tailwind
colors: {
  custom: {
    50: '#67a177',
    500: '#1a7942',
    950: '#000000',
  },
}
SCSS
$custom: #1a7942;
$custom-light: #67a177;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7942",
  "rgb": {
    "r": 26,
    "g": 121,
    "b": 66
  },
  "hsl": {
    "h": 145.263,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.5092,
    "c": 0.12137,
    "h": 152.6
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

primary
#1A7942
secondary
#AD4180
accent
#40A1E8
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1A7942

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

Preview Lab → · Contrast checker → · Palette generator →

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