#1A7D17#1A7D17

#1A7D17 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.161 H 142.5°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#1A7D17
RGBrgb(26, 125, 23)
HSLhsl(118, 69%, 29%)
HSVhsv(118, 82%, 49%)
CMYKcmyk(79.2%, 0%, 81.6%, 51%)
CIE-LABlab(45.56, -47.02, 43.92)
CIE-LCHlch(45.56, 64.34, 136.95°)
OKLaboklab(51.53% -0.1278 0.098)
OKLCHoklch(51.53% 0.161 142.5)
XYZxyz(7.9138, 14.9478, 3.2786)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7D17 #7A177D
analogous
#4D7D17 #1A7D17 #177D47
triadic
#1A7D17 #171A7D #7D171A
tetradic
#1A7D17 #174D7D #7A177D #7D4717
square
#1A7D17 #174D7D #7A177D #7D4717
split-complementary
#1A7D17 #47177D #7D174D
monochromatic
#051A05 #0F490D #1A7D17 #25B121 #39DA35

Accessibility & contrast

On white

5.26
#1A7D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#1A7D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7D17
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7D17#FFFFFF#000000##FFFFFF
##1A7D171.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#756923
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1a7d17;
/* rgb */ color: rgb(26, 125, 23);
/* oklch */ color: oklch(51.5% 0.161 142.5);
Tailwind
colors: {
  custom: {
    50: '#6aa45d',
    500: '#1a7d17',
    950: '#000000',
  },
}
SCSS
$custom: #1a7d17;
$custom-light: #6aa45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7d17",
  "rgb": {
    "r": 26,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 118.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51534,
    "c": 0.16105,
    "h": 142.5
  },
  "luminance": 0.14949
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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