#1A7817#1A7817

#1A7817 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.1% C 0.155 H 142.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#1A7817
RGBrgb(26, 120, 23)
HSLhsl(118, 68%, 28%)
HSVhsv(118, 81%, 47%)
CMYKcmyk(78.3%, 0%, 80.8%, 52.9%)
CIE-LABlab(43.82, -45.34, 42.24)
CIE-LCHlch(43.82, 61.97, 137.02°)
OKLaboklab(50.09% -0.1232 0.0945)
OKLCHoklch(50.09% 0.155 142.5)
XYZxyz(7.2967, 13.7136, 3.0729)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7817 #751778
analogous
#4A7817 #1A7817 #177844
triadic
#1A7817 #171A78 #78171A
tetradic
#1A7817 #174A78 #751778 #784417
square
#1A7817 #174A78 #751778 #784417
split-complementary
#1A7817 #441778 #78174A
monochromatic
#061A05 #0F450D #1A7817 #25AB21 #37D832

Accessibility & contrast

On white

5.61
#1A7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#1A7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7817
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7817#FFFFFF#000000##FFFFFF
##1A78171.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#706522
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1a7817;
/* rgb */ color: rgb(26, 120, 23);
/* oklch */ color: oklch(50.1% 0.155 142.5);
Tailwind
colors: {
  custom: {
    50: '#68a05c',
    500: '#1a7817',
    950: '#000000',
  },
}
SCSS
$custom: #1a7817;
$custom-light: #68a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7817",
  "rgb": {
    "r": 26,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 118.144,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50085,
    "c": 0.1553,
    "h": 142.5
  },
  "luminance": 0.13714
}

Semantic roles & 50–950 ramp

primary
#1A7817
secondary
#AA3EAD
accent
#3DEBE5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1A7817

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

Preview Lab → · Contrast checker → · Palette generator →

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