#1A7212#1A7212

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

Color values

HEX#1A7212
RGBrgb(26, 114, 18)
HSLhsl(115, 73%, 26%)
HSVhsv(115, 84%, 45%)
CMYKcmyk(77.2%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.68, -43.63, 41.86)
CIE-LCHlch(41.68, 60.46, 136.18°)
OKLaboklab(48.3% -0.1188 0.093)
OKLCHoklch(48.3% 0.151 142)
XYZxyz(6.5521, 12.2972, 2.6004)
Luminance0.1230 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A7212 #6A1272
analogous
#4A7212 #1A7212 #12723A
triadic
#1A7212 #121A72 #72121A
tetradic
#1A7212 #124A72 #6A1272 #723A12
square
#1A7212 #124A72 #6A1272 #723A12
split-complementary
#1A7212 #3A1272 #72124A
monochromatic
#061A04 #0E3D0A #1A7212 #26A71A #32DC23

Accessibility & contrast

On white

6.07
#1A7212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1A7212
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A7212#FFFFFF#000000##FFFFFF
##1A72121.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B601E
Tritanopia (blue-blind)
#006E60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1a7212;
/* rgb */ color: rgb(26, 114, 18);
/* oklch */ color: oklch(48.3% 0.151 142.0);
Tailwind
colors: {
  custom: {
    50: '#679b59',
    500: '#1a7212',
    950: '#000000',
  },
}
SCSS
$custom: #1a7212;
$custom-light: #679b59;
$custom-dark: #000000;
JSON
{
  "hex": "#1a7212",
  "rgb": {
    "r": 26,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 115,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48302,
    "c": 0.15087,
    "h": 142
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#1A7212
secondary
#9F37A9
accent
#38EFE0
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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