#1A7B42#1A7B42

#1A7B42 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.124 H 152.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#1A7B42
RGBrgb(26, 123, 66)
HSLhsl(145, 65%, 29%)
HSVhsv(145, 79%, 48%)
CMYKcmyk(78.9%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.33, -40.82, 23.54)
CIE-LCHlch(45.33, 47.13, 150.03°)
OKLaboklab(51.49% -0.1098 0.058)
OKLCHoklch(51.49% 0.124 152.2)
XYZxyz(8.4916, 14.7779, 7.5581)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7B42 #7B1A53
analogous
#237B1A #1A7B42 #1A7B73
triadic
#1A7B42 #421A7B #7B421A
tetradic
#1A7B42 #1A237B #7B1A53 #7B731A
square
#1A7B42 #1A237B #7B1A53 #7B731A
split-complementary
#1A7B42 #731A7B #7B1A23
monochromatic
#05190E #0F4827 #1A7B42 #25AE5D #3AD57A

Accessibility & contrast

On white

5.31
#1A7B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#1A7B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7B42
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7B42#FFFFFF#000000##FFFFFF
##1A7B421.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1a7b42;
/* rgb */ color: rgb(26, 123, 66);
/* oklch */ color: oklch(51.5% 0.124 152.2);
Tailwind
colors: {
  custom: {
    50: '#67a277',
    500: '#1a7b42',
    950: '#000000',
  },
}
SCSS
$custom: #1a7b42;
$custom-light: #67a277;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7b42",
  "rgb": {
    "r": 26,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 144.742,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51488,
    "c": 0.12415,
    "h": 152.2
  },
  "luminance": 0.14779
}

Semantic roles & 50–950 ramp

primary
#1A7B42
secondary
#AF4282
accent
#40A3E8
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1A7B42

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

Preview Lab → · Contrast checker → · Palette generator →

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