#1A7F12#1A7F12

#1A7F12 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.166 H 142.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#1A7F12
RGBrgb(26, 127, 18)
HSLhsl(116, 75%, 28%)
HSVhsv(116, 86%, 50%)
CMYKcmyk(79.5%, 0%, 85.8%, 50.2%)
CIE-LABlab(46.23, -47.99, 46.07)
CIE-LCHlch(46.23, 66.53, 136.17°)
OKLaboklab(52.08% -0.1306 0.1018)
OKLCHoklch(52.08% 0.166 142.1)
XYZxyz(8.1241, 15.4411, 3.1244)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7F12 #77127F
analogous
#507F12 #1A7F12 #127F40
triadic
#1A7F12 #121A7F #7F121A
tetradic
#1A7F12 #12507F #77127F #7F4012
square
#1A7F12 #12507F #77127F #7F4012
split-complementary
#1A7F12 #40127F #7F1250
monochromatic
#051B04 #0F490A #1A7F12 #25B51A #38E12B

Accessibility & contrast

On white

5.14
#1A7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#1A7F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1A7F12
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7F12#FFFFFF#000000##FFFFFF
##1A7F121.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1a7f12;
/* rgb */ color: rgb(26, 127, 18);
/* oklch */ color: oklch(52.1% 0.166 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ba55b',
    500: '#1a7f12',
    950: '#000000',
  },
}
SCSS
$custom: #1a7f12;
$custom-light: #6ba55b;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7f12",
  "rgb": {
    "r": 26,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 115.596,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52084,
    "c": 0.1656,
    "h": 142.1
  },
  "luminance": 0.15442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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