#1A7818#1A7818

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

Color values

HEX#1A7818
RGBrgb(26, 120, 24)
HSLhsl(119, 67%, 28%)
HSVhsv(119, 80%, 47%)
CMYKcmyk(78.3%, 0%, 80%, 52.9%)
CIE-LABlab(43.83, -45.27, 41.90)
CIE-LCHlch(43.83, 61.68, 137.21°)
OKLaboklab(50.09% -0.123 0.094)
OKLCHoklch(50.09% 0.155 142.6)
XYZxyz(7.3069, 13.7177, 3.1267)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7818 #761878
analogous
#4A7818 #1A7818 #187846
triadic
#1A7818 #181A78 #78181A
tetradic
#1A7818 #184A78 #761878 #784618
square
#1A7818 #184A78 #761878 #784618
split-complementary
#1A7818 #461878 #78184A
monochromatic
#061A05 #0F450E #1A7818 #25AB22 #37D634

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A7818#FFFFFF#000000##FFFFFF
##1A78181.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)
#7B6C02
Deuteranopia (green-blind)
#706523
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1a7818;
/* rgb */ color: rgb(26, 120, 24);
/* oklch */ color: oklch(50.1% 0.155 142.6);
Tailwind
colors: {
  custom: {
    50: '#68a05d',
    500: '#1a7818',
    950: '#000000',
  },
}
SCSS
$custom: #1a7818;
$custom-light: #68a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7818",
  "rgb": {
    "r": 26,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 118.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50092,
    "c": 0.15476,
    "h": 142.6
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

primary
#1A7818
secondary
#AB3FAD
accent
#3EEAE6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1A7818

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

Preview Lab → · Contrast checker → · Palette generator →

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