#1A7217#1A7217

#1A7217 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.3% C 0.148 H 142.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#1A7217
RGBrgb(26, 114, 23)
HSLhsl(118, 66%, 27%)
HSVhsv(118, 80%, 45%)
CMYKcmyk(77.2%, 0%, 79.8%, 55.3%)
CIE-LABlab(41.71, -43.28, 40.19)
CIE-LCHlch(41.71, 59.06, 137.11°)
OKLaboklab(48.34% -0.1176 0.0903)
OKLCHoklch(48.34% 0.148 142.5)
XYZxyz(6.5976, 12.3154, 2.8398)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7217 #6F1772
analogous
#487217 #1A7217 #177242
triadic
#1A7217 #171A72 #72171A
tetradic
#1A7217 #174872 #6F1772 #724217
square
#1A7217 #174872 #6F1772 #724217
split-complementary
#1A7217 #421772 #721748
monochromatic
#061905 #0E3F0D #1A7217 #26A521 #34D52E

Accessibility & contrast

On white

6.06
#1A7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#1A7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7217
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7217#FFFFFF#000000##FFFFFF
##1A72171.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#006E61
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1a7217;
/* rgb */ color: rgb(26, 114, 23);
/* oklch */ color: oklch(48.3% 0.148 142.5);
Tailwind
colors: {
  custom: {
    50: '#679b5b',
    500: '#1a7217',
    950: '#000000',
  },
}
SCSS
$custom: #1a7217;
$custom-light: #679b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7217",
  "rgb": {
    "r": 26,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 118.022,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48335,
    "c": 0.14827,
    "h": 142.5
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#1A7217
secondary
#A43DA8
accent
#3EE9E4
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1A7217

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

Preview Lab → · Contrast checker → · Palette generator →

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