#1A7E12#1A7E12

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

Color values

HEX#1A7E12
RGBrgb(26, 126, 18)
HSLhsl(116, 75%, 28%)
HSVhsv(116, 86%, 49%)
CMYKcmyk(79.4%, 0%, 85.7%, 50.6%)
CIE-LABlab(45.89, -47.66, 45.75)
CIE-LCHlch(45.89, 66.07, 136.17°)
OKLaboklab(51.8% -0.1297 0.1011)
OKLCHoklch(51.8% 0.164 142.1)
XYZxyz(7.9956, 15.1841, 3.0816)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7E12 #76127E
analogous
#507E12 #1A7E12 #127E40
triadic
#1A7E12 #121A7E #7E121A
tetradic
#1A7E12 #12507E #76127E #7E4012
square
#1A7E12 #12507E #76127E #7E4012
split-complementary
#1A7E12 #40127E #7E1250
monochromatic
#061B04 #0F480A #1A7E12 #25B41A #37E12A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A7E12#FFFFFF#000000##FFFFFF
##1A7E121.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)
#766A20
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1a7e12;
/* rgb */ color: rgb(26, 126, 18);
/* oklch */ color: oklch(51.8% 0.164 142.1);
Tailwind
colors: {
  custom: {
    50: '#6aa45b',
    500: '#1a7e12',
    950: '#000000',
  },
}
SCSS
$custom: #1a7e12;
$custom-light: #6aa45b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7e12",
  "rgb": {
    "r": 26,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 115.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51795,
    "c": 0.16449,
    "h": 142.1
  },
  "luminance": 0.15185
}

Semantic roles & 50–950 ramp

primary
#1A7E12
secondary
#AB38B4
accent
#36F2E4
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1A7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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