#1F771C#1F771C

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

Color values

HEX#1F771C
RGBrgb(31, 119, 28)
HSLhsl(118, 62%, 29%)
HSVhsv(118, 76%, 47%)
CMYKcmyk(73.9%, 0%, 76.5%, 53.3%)
CIE-LABlab(43.61, -43.70, 40.23)
CIE-LCHlch(43.61, 59.40, 137.37°)
OKLaboklab(49.95% -0.1188 0.091)
OKLCHoklch(49.95% 0.15 142.5)
XYZxyz(7.3711, 13.5680, 3.3288)
Luminance0.1357 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771C #741C77
analogous
#4D771C #1F771C #1C7747
triadic
#1F771C #1C1F77 #771C1F
tetradic
#1F771C #1C4D77 #741C77 #77471C
square
#1F771C #1C4D77 #741C77 #77471C
split-complementary
#1F771C #471C77 #771C4D
monochromatic
#061906 #124510 #1F771C #2CA928 #41D13C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F771C#FFFFFF#000000##FFFFFF
##1F771C1.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)
#7A6B0B
Deuteranopia (green-blind)
#706426
Tritanopia (blue-blind)
#037365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771c;
/* rgb */ color: rgb(31, 119, 28);
/* oklch */ color: oklch(49.9% 0.150 142.5);
Tailwind
colors: {
  custom: {
    50: '#6a9f5f',
    500: '#1f771c',
    950: '#000000',
  },
}
SCSS
$custom: #1f771c;
$custom-light: #6a9f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771c",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 118.022,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49949,
    "c": 0.14967,
    "h": 142.5
  },
  "luminance": 0.13569
}

Semantic roles & 50–950 ramp

primary
#1F771C
secondary
#A844AB
accent
#43E5E0
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771C

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

Preview Lab → · Contrast checker → · Palette generator →

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