#1A7A42#1A7A42

#1A7A42 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.123 H 152.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#1A7A42
RGBrgb(26, 122, 66)
HSLhsl(145, 65%, 29%)
HSVhsv(145, 79%, 48%)
CMYKcmyk(78.7%, 0%, 45.9%, 52.2%)
CIE-LABlab(44.98, -40.43, 23.10)
CIE-LCHlch(44.98, 46.57, 150.26°)
OKLaboklab(51.2% -0.1088 0.0569)
OKLCHoklch(51.2% 0.123 152.4)
XYZxyz(8.3682, 14.5310, 7.5169)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7A42 #7A1A52
analogous
#227A1A #1A7A42 #1A7A72
triadic
#1A7A42 #421A7A #7A421A
tetradic
#1A7A42 #1A227A #7A1A52 #7A721A
square
#1A7A42 #1A227A #7A1A52 #7A721A
split-complementary
#1A7A42 #721A7A #7A1A22
monochromatic
#05190E #0F4827 #1A7A42 #25AC5D #39D57A

Accessibility & contrast

On white

5.38
#1A7A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1A7A42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7A42
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7A42#FFFFFF#000000##FFFFFF
##1A7A421.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3E
Deuteranopia (green-blind)
#6F6746
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1a7a42;
/* rgb */ color: rgb(26, 122, 66);
/* oklch */ color: oklch(51.2% 0.123 152.4);
Tailwind
colors: {
  custom: {
    50: '#67a177',
    500: '#1a7a42',
    950: '#000000',
  },
}
SCSS
$custom: #1a7a42;
$custom-light: #67a177;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7a42",
  "rgb": {
    "r": 26,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 145,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51204,
    "c": 0.12276,
    "h": 152.4
  },
  "luminance": 0.14532
}

Semantic roles & 50–950 ramp

primary
#1A7A42
secondary
#AE4181
accent
#40A2E8
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1A7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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