#1A5012#1A5012

#1A5012 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.108 H 141.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#1A5012
RGBrgb(26, 80, 18)
HSLhsl(112, 63%, 19%)
HSVhsv(112, 78%, 31%)
CMYKcmyk(67.5%, 0%, 77.5%, 68.6%)
CIE-LABlab(29.41, -30.94, 29.82)
CIE-LCHlch(29.41, 42.97, 136.06°)
OKLaboklab(38.13% -0.0845 0.0678)
OKLCHoklch(38.13% 0.108 141.2)
XYZxyz(3.4037, 6.0003, 1.5510)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A5012 #481250
analogous
#395012 #1A5012 #125029
triadic
#1A5012 #121A50 #50121A
tetradic
#1A5012 #123950 #481250 #502912
square
#1A5012 #123950 #481250 #502912
split-complementary
#1A5012 #291250 #501239
monochromatic
#081906 #0A1E07 #1A5012 #2A821D #3AB428

Accessibility & contrast

On white

9.54
#1A5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1A5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A5012
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A5012#FFFFFF#000000##FFFFFF
##1A50121.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4C4418
Tritanopia (blue-blind)
#114D44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1a5012;
/* rgb */ color: rgb(26, 80, 18);
/* oklch */ color: oklch(38.1% 0.108 141.2);
Tailwind
colors: {
  custom: {
    50: '#5f8254',
    500: '#1a5012',
    950: '#000000',
  },
}
SCSS
$custom: #1a5012;
$custom-light: #5f8254;
$custom-dark: #000000;
JSON
{
  "hex": "#1a5012",
  "rgb": {
    "r": 26,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 112.258,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38126,
    "c": 0.10839,
    "h": 141.2
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#1A5012
secondary
#7E3589
accent
#41E6D1
background
#F5F8F5
surface
#EAEFE8
border
#C6CAC4
text
#050A03
muted
#797C78

Preview Lab

Preview with #1A5012

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

Preview Lab → · Contrast checker → · Palette generator →

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