#1F771E#1F771E

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

Color values

HEX#1F771E
RGBrgb(31, 119, 30)
HSLhsl(119, 60%, 29%)
HSVhsv(119, 75%, 47%)
CMYKcmyk(73.9%, 0%, 74.8%, 53.3%)
CIE-LABlab(43.62, -43.53, 39.45)
CIE-LCHlch(43.62, 58.75, 137.81°)
OKLaboklab(49.97% -0.1182 0.0897)
OKLCHoklch(49.97% 0.148 142.8)
XYZxyz(7.3958, 13.5779, 3.4591)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771E #761E77
analogous
#4C771E #1F771E #1E774A
triadic
#1F771E #1E1F77 #771E1F
tetradic
#1F771E #1E4C77 #761E77 #774A1E
square
#1F771E #1E4C77 #761E77 #774A1E
split-complementary
#1F771E #4A1E77 #771E4C
monochromatic
#061806 #124612 #1F771E #2CA82A #42CF40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F771E#FFFFFF#000000##FFFFFF
##1F771E1.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)
#7A6B0F
Deuteranopia (green-blind)
#706427
Tritanopia (blue-blind)
#027366
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771e;
/* rgb */ color: rgb(31, 119, 30);
/* oklch */ color: oklch(50.0% 0.148 142.8);
Tailwind
colors: {
  custom: {
    50: '#6a9f60',
    500: '#1f771e',
    950: '#000000',
  },
}
SCSS
$custom: #1f771e;
$custom-light: #6a9f60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771e",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 30
  },
  "hsl": {
    "h": 119.326,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.49966,
    "c": 0.14839,
    "h": 142.8
  },
  "luminance": 0.13579
}

Semantic roles & 50–950 ramp

primary
#1F771E
secondary
#AA46AB
accent
#45E3E1
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771E

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

Preview Lab → · Contrast checker → · Palette generator →

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