#1F861A#1F861A

#1F861A is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.2% C 0.168 H 142.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#1F861A
RGBrgb(31, 134, 26)
HSLhsl(117, 68%, 31%)
HSVhsv(117, 81%, 53%)
CMYKcmyk(76.9%, 0%, 80.6%, 47.5%)
CIE-LABlab(48.78, -49.02, 46.05)
CIE-LCHlch(48.78, 67.25, 136.79°)
OKLaboklab(54.24% -0.1333 0.1029)
OKLCHoklch(54.24% 0.168 142.3)
XYZxyz(9.2761, 17.4150, 3.8496)
Luminance0.1742 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F861A #811A86
analogous
#55861A #1F861A #1A864B
triadic
#1F861A #1A1F86 #861A1F
tetradic
#1F861A #1A5586 #811A86 #864B1A
square
#1F861A #1A5586 #811A86 #864B1A
split-complementary
#1F861A #4B1A86 #861A55
monochromatic
#071F06 #135310 #1F861A #2BB924 #47DA40

Accessibility & contrast

On white

4.68
#1F861A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#1F861A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F861A
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F861A#FFFFFF#000000##FFFFFF
##1F861A1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#7E7127
Tritanopia (blue-blind)
#008272
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f861a;
/* rgb */ color: rgb(31, 134, 26);
/* oklch */ color: oklch(54.2% 0.168 142.3);
Tailwind
colors: {
  custom: {
    50: '#6eaa60',
    500: '#1f861a',
    950: '#000000',
  },
}
SCSS
$custom: #1f861a;
$custom-light: #6eaa60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f861a",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 26
  },
  "hsl": {
    "h": 117.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5424,
    "c": 0.16836,
    "h": 142.3
  },
  "luminance": 0.17416
}

Semantic roles & 50–950 ramp

primary
#1F861A
secondary
#B442B9
accent
#3DEAE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F861A

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

Preview Lab → · Contrast checker → · Palette generator →

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