#1A7E17#1A7E17

#1A7E17 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.162 H 142.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1A7E17
RGBrgb(26, 126, 23)
HSLhsl(118, 69%, 29%)
HSVhsv(118, 82%, 49%)
CMYKcmyk(79.4%, 0%, 81.7%, 50.6%)
CIE-LABlab(45.91, -47.36, 44.25)
CIE-LCHlch(45.91, 64.81, 136.94°)
OKLaboklab(51.82% -0.1287 0.0987)
OKLCHoklch(51.82% 0.162 142.5)
XYZxyz(8.0410, 15.2022, 3.3210)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7E17 #7B177E
analogous
#4E7E17 #1A7E17 #177E48
triadic
#1A7E17 #171A7E #7E171A
tetradic
#1A7E17 #174E7E #7B177E #7E4817
square
#1A7E17 #174E7E #7B177E #7E4817
split-complementary
#1A7E17 #48177E #7E174E
monochromatic
#051A05 #0F4A0E #1A7E17 #25B220 #3ADA35

Accessibility & contrast

On white

5.20
#1A7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1A7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7E17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7E17#FFFFFF#000000##FFFFFF
##1A7E171.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1a7e17;
/* rgb */ color: rgb(26, 126, 23);
/* oklch */ color: oklch(51.8% 0.162 142.5);
Tailwind
colors: {
  custom: {
    50: '#6aa45d',
    500: '#1a7e17',
    950: '#000000',
  },
}
SCSS
$custom: #1a7e17;
$custom-light: #6aa45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7e17",
  "rgb": {
    "r": 26,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 118.252,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51823,
    "c": 0.16219,
    "h": 142.5
  },
  "luminance": 0.15203
}

Semantic roles & 50–950 ramp

primary
#1A7E17
secondary
#AF3EB3
accent
#3CECE7
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1A7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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