#1F771D#1F771D

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

Color values

HEX#1F771D
RGBrgb(31, 119, 29)
HSLhsl(119, 61%, 29%)
HSVhsv(119, 76%, 47%)
CMYKcmyk(73.9%, 0%, 75.6%, 53.3%)
CIE-LABlab(43.61, -43.62, 39.85)
CIE-LCHlch(43.61, 59.08, 137.59°)
OKLaboklab(49.96% -0.1185 0.0904)
OKLCHoklch(49.96% 0.149 142.7)
XYZxyz(7.3832, 13.5729, 3.3929)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771D #751D77
analogous
#4C771D #1F771D #1D7748
triadic
#1F771D #1D1F77 #771D1F
tetradic
#1F771D #1D4C77 #751D77 #77481D
square
#1F771D #1D4C77 #751D77 #77481D
split-complementary
#1F771D #481D77 #771D4C
monochromatic
#061906 #124611 #1F771D #2CA829 #42D03E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F771D#FFFFFF#000000##FFFFFF
##1F771D1.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B0D
Deuteranopia (green-blind)
#706426
Tritanopia (blue-blind)
#037365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771d;
/* rgb */ color: rgb(31, 119, 29);
/* oklch */ color: oklch(50.0% 0.149 142.7);
Tailwind
colors: {
  custom: {
    50: '#6a9f5f',
    500: '#1f771d',
    950: '#000000',
  },
}
SCSS
$custom: #1f771d;
$custom-light: #6a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771d",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 29
  },
  "hsl": {
    "h": 118.667,
    "s": 60.811,
    "l": 29.02
  },
  "oklch": {
    "l": 0.49957,
    "c": 0.14904,
    "h": 142.7
  },
  "luminance": 0.13574
}

Semantic roles & 50–950 ramp

primary
#1F771D
secondary
#A945AB
accent
#44E4E0
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771D

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

Preview Lab → · Contrast checker → · Palette generator →

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