#1A510C#1A510C

#1A510C is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.114 H 140.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#1A510C
RGBrgb(26, 81, 12)
HSLhsl(108, 74%, 18%)
HSVhsv(108, 85%, 32%)
CMYKcmyk(67.9%, 0%, 85.2%, 68.2%)
CIE-LABlab(29.74, -31.85, 32.57)
CIE-LCHlch(29.74, 45.56, 134.36°)
OKLaboklab(38.38% -0.0874 0.0727)
OKLCHoklch(38.38% 0.114 140.2)
XYZxyz(3.4346, 6.1307, 1.3501)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A510C #430C51
analogous
#3C510C #1A510C #0C5120
triadic
#1A510C #0C1A51 #510C1A
tetradic
#1A510C #0C3C51 #430C51 #51200C
square
#1A510C #0C3C51 #430C51 #51200C
split-complementary
#1A510C #200C51 #510C3C
monochromatic
#091B04 #091C04 #1A510C #2B8614 #3CBC1C

Accessibility & contrast

On white

9.43
#1A510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1A510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A510C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A510C#FFFFFF#000000##FFFFFF
##1A510C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534900
Deuteranopia (green-blind)
#4D4414
Tritanopia (blue-blind)
#124E44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1a510c;
/* rgb */ color: rgb(26, 81, 12);
/* oklch */ color: oklch(38.4% 0.114 140.2);
Tailwind
colors: {
  custom: {
    50: '#5f8251',
    500: '#1a510c',
    950: '#000000',
  },
}
SCSS
$custom: #1a510c;
$custom-light: #5f8251;
$custom-dark: #000000;
JSON
{
  "hex": "#1a510c",
  "rgb": {
    "r": 26,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 107.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38382,
    "c": 0.11363,
    "h": 140.2
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#1A510C
secondary
#792C8C
accent
#37F1CB
background
#F5F8F4
surface
#EAEFE7
border
#C6CAC3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1A510C

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

Preview Lab → · Contrast checker → · Palette generator →

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