#1A871F#1A871F

#1A871F is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.5% C 0.168 H 143.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#1A871F
RGBrgb(26, 135, 31)
HSLhsl(123, 68%, 32%)
HSVhsv(123, 81%, 53%)
CMYKcmyk(80.7%, 0%, 77%, 47.1%)
CIE-LABlab(49.06, -49.74, 44.55)
CIE-LCHlch(49.06, 66.77, 138.15°)
OKLaboklab(54.46% -0.1348 0.1005)
OKLCHoklch(54.46% 0.168 143.3)
XYZxyz(9.3367, 17.6454, 4.2099)
Luminance0.1765 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A871F #871A82
analogous
#4C871A #1A871F #1A8756
triadic
#1A871F #1F1A87 #871F1A
tetradic
#1A871F #1A4C87 #871A82 #87561A
square
#1A871F #1A4C87 #871A82 #87561A
split-complementary
#1A871F #561A87 #871A4C
monochromatic
#062007 #105413 #1A871F #24BA2B #41DA48

Accessibility & contrast

On white

4.64
#1A871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#1A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1A871F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A871F#FFFFFF#000000##FFFFFF
##1A871F1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1a871f;
/* rgb */ color: rgb(26, 135, 31);
/* oklch */ color: oklch(54.5% 0.168 143.3);
Tailwind
colors: {
  custom: {
    50: '#6cab62',
    500: '#1a871f',
    950: '#000000',
  },
}
SCSS
$custom: #1a871f;
$custom-light: #6cab62;
$custom-dark: #000000;
JSON
{
  "hex": "#1a871f",
  "rgb": {
    "r": 26,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 122.752,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54461,
    "c": 0.16811,
    "h": 143.3
  },
  "luminance": 0.17646
}

Semantic roles & 50–950 ramp

primary
#1A871F
secondary
#BA42B5
accent
#3DE3EB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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