#1F771F#1F771F

#1F771F is a mid, vivid green. Relative luminance 0.136; OKLCH L 50.0% C 0.148 H 143.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#1F771F
RGBrgb(31, 119, 31)
HSLhsl(120, 59%, 29%)
HSVhsv(120, 74%, 47%)
CMYKcmyk(73.9%, 0%, 73.9%, 53.3%)
CIE-LABlab(43.63, -43.44, 39.05)
CIE-LCHlch(43.63, 58.41, 138.04°)
OKLaboklab(49.97% -0.1179 0.089)
OKLCHoklch(49.97% 0.148 143)
XYZxyz(7.4088, 13.5831, 3.5274)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771F #771F77
analogous
#4B771F #1F771F #1F774B
triadic
#1F771F #1F1F77 #771F1F
tetradic
#1F771F #1F4B77 #771F77 #774B1F
square
#1F771F #1F4B77 #771F77 #774B1F
split-complementary
#1F771F #4B1F77 #771F4B
monochromatic
#061806 #124612 #1F771F #2CA82C #43CE43

Accessibility & contrast

On white

5.65
#1F771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#1F771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F771F
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F771F#FFFFFF#000000##FFFFFF
##1F771F1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B11
Deuteranopia (green-blind)
#706428
Tritanopia (blue-blind)
#027366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771f;
/* rgb */ color: rgb(31, 119, 31);
/* oklch */ color: oklch(50.0% 0.148 143.0);
Tailwind
colors: {
  custom: {
    50: '#6a9f60',
    500: '#1f771f',
    950: '#000000',
  },
}
SCSS
$custom: #1f771f;
$custom-light: #6a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771f",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.49974,
    "c": 0.14772,
    "h": 143
  },
  "luminance": 0.13584
}

Semantic roles & 50–950 ramp

primary
#1F771F
secondary
#AB47AB
accent
#46E2E2
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771F

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

Preview Lab → · Contrast checker → · Palette generator →

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