#1A5212#1A5212

#1A5212 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.111 H 141.3°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#1A5212
RGBrgb(26, 82, 18)
HSLhsl(113, 64%, 20%)
HSVhsv(113, 78%, 32%)
CMYKcmyk(68.3%, 0%, 78%, 67.8%)
CIE-LABlab(30.15, -31.76, 30.58)
CIE-LCHlch(30.15, 44.08, 136.08°)
OKLaboklab(38.74% -0.0867 0.0695)
OKLCHoklch(38.74% 0.111 141.3)
XYZxyz(3.5523, 6.2975, 1.6005)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A5212 #4A1252
analogous
#3A5212 #1A5212 #12522A
triadic
#1A5212 #121A52 #52121A
tetradic
#1A5212 #123A52 #4A1252 #522A12
square
#1A5212 #123A52 #4A1252 #522A12
split-complementary
#1A5212 #2A1252 #52123A
monochromatic
#081906 #0A2007 #1A5212 #2A841D #3AB628

Accessibility & contrast

On white

9.29
#1A5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1A5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A5212
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A5212#FFFFFF#000000##FFFFFF
##1A52121.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#114F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1a5212;
/* rgb */ color: rgb(26, 82, 18);
/* oklch */ color: oklch(38.7% 0.111 141.3);
Tailwind
colors: {
  custom: {
    50: '#5f8354',
    500: '#1a5212',
    950: '#000000',
  },
}
SCSS
$custom: #1a5212;
$custom-light: #5f8354;
$custom-dark: #000000;
JSON
{
  "hex": "#1a5212",
  "rgb": {
    "r": 26,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 112.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38736,
    "c": 0.11112,
    "h": 141.3
  },
  "luminance": 0.06298
}

Semantic roles & 50–950 ramp

primary
#1A5212
secondary
#80358B
accent
#41E7D2
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050B03
muted
#797C78

Preview Lab

Preview with #1A5212

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

Preview Lab → · Contrast checker → · Palette generator →

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