#1F771B#1F771B

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

Color values

HEX#1F771B
RGBrgb(31, 119, 27)
HSLhsl(117, 63%, 29%)
HSVhsv(117, 77%, 47%)
CMYKcmyk(73.9%, 0%, 77.3%, 53.3%)
CIE-LABlab(43.60, -43.79, 40.61)
CIE-LCHlch(43.60, 59.72, 137.15°)
OKLaboklab(49.94% -0.1191 0.0917)
OKLCHoklch(49.94% 0.15 142.4)
XYZxyz(7.3593, 13.5633, 3.2668)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F771B #731B77
analogous
#4D771B #1F771B #1B7745
triadic
#1F771B #1B1F77 #771B1F
tetradic
#1F771B #1B4D77 #731B77 #77451B
square
#1F771B #1B4D77 #731B77 #77451B
split-complementary
#1F771B #451B77 #771B4D
monochromatic
#061906 #124510 #1F771B #2CA926 #41D23A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F771B#FFFFFF#000000##FFFFFF
##1F771B1.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)
#7A6B09
Deuteranopia (green-blind)
#706425
Tritanopia (blue-blind)
#047365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f771b;
/* rgb */ color: rgb(31, 119, 27);
/* oklch */ color: oklch(49.9% 0.150 142.4);
Tailwind
colors: {
  custom: {
    50: '#6a9f5e',
    500: '#1f771b',
    950: '#000000',
  },
}
SCSS
$custom: #1f771b;
$custom-light: #6a9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f771b",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 117.391,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49941,
    "c": 0.15028,
    "h": 142.4
  },
  "luminance": 0.13564
}

Semantic roles & 50–950 ramp

primary
#1F771B
secondary
#A742AB
accent
#42E6DF
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F771B

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

Preview Lab → · Contrast checker → · Palette generator →

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