#1A7828#1A7828

#1A7828 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.2% C 0.144 H 145.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#1A7828
RGBrgb(26, 120, 40)
HSLhsl(129, 64%, 29%)
HSVhsv(129, 78%, 47%)
CMYKcmyk(78.3%, 0%, 66.7%, 52.9%)
CIE-LABlab(43.95, -43.72, 35.39)
CIE-LCHlch(43.95, 56.24, 141.01°)
OKLaboklab(50.24% -0.118 0.0824)
OKLCHoklch(50.24% 0.144 145.1)
XYZxyz(7.5250, 13.8049, 4.2751)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7828 #781A6A
analogous
#3B781A #1A7828 #1A7857
triadic
#1A7828 #281A78 #78281A
tetradic
#1A7828 #1A3B78 #781A6A #78571A
square
#1A7828 #1A3B78 #781A6A #78571A
split-complementary
#1A7828 #571A78 #781A3B
monochromatic
#051908 #0F4617 #1A7828 #25AA39 #38D450

Accessibility & contrast

On white

5.58
#1A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#1A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7828
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7828#FFFFFF#000000##FFFFFF
##1A78281.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C1E
Deuteranopia (green-blind)
#70652F
Tritanopia (blue-blind)
#007567
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1a7828;
/* rgb */ color: rgb(26, 120, 40);
/* oklch */ color: oklch(50.2% 0.144 145.1);
Tailwind
colors: {
  custom: {
    50: '#68a066',
    500: '#1a7828',
    950: '#000000',
  },
}
SCSS
$custom: #1a7828;
$custom-light: #68a066;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7828",
  "rgb": {
    "r": 26,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 128.936,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50238,
    "c": 0.14391,
    "h": 145.1
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#1A7828
secondary
#AC419D
accent
#40CFE7
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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