#1F771A#1F771A

#1F771A is a mid, vivid green. Relative luminance 0.136; OKLCH L 49.9% C 0.151 H 142.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#1F771A
RGBrgb(31, 119, 26)
HSLhsl(117, 64%, 28%)
HSVhsv(117, 78%, 47%)
CMYKcmyk(73.9%, 0%, 78.2%, 53.3%)
CIE-LABlab(43.59, -43.87, 40.98)
CIE-LCHlch(43.59, 60.03, 136.95°)
OKLaboklab(49.93% -0.1194 0.0923)
OKLCHoklch(49.93% 0.151 142.3)
XYZxyz(7.3479, 13.5587, 3.2069)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771A #721A77
analogous
#4D771A #1F771A #1A7743
triadic
#1F771A #1A1F77 #771A1F
tetradic
#1F771A #1A4D77 #721A77 #77431A
square
#1F771A #1A4D77 #721A77 #77431A
split-complementary
#1F771A #431A77 #771A4D
monochromatic
#071905 #12450F #1F771A #2CA925 #40D338

Accessibility & contrast

On white

5.66
#1F771A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#1F771A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F771A
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F771A#FFFFFF#000000##FFFFFF
##1F771A1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B06
Deuteranopia (green-blind)
#706424
Tritanopia (blue-blind)
#047365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771a;
/* rgb */ color: rgb(31, 119, 26);
/* oklch */ color: oklch(49.9% 0.151 142.3);
Tailwind
colors: {
  custom: {
    50: '#6a9f5e',
    500: '#1f771a',
    950: '#000000',
  },
}
SCSS
$custom: #1f771a;
$custom-light: #6a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771a",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 26
  },
  "hsl": {
    "h": 116.774,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49933,
    "c": 0.15088,
    "h": 142.3
  },
  "luminance": 0.1356
}

Semantic roles & 50–950 ramp

primary
#1F771A
secondary
#A641AC
accent
#41E7DE
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771A

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

Preview Lab → · Contrast checker → · Palette generator →

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