#1F772A#1F772A

#1F772A is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.1% C 0.139 H 145.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#1F772A
RGBrgb(31, 119, 42)
HSLhsl(128, 59%, 29%)
HSVhsv(128, 74%, 47%)
CMYKcmyk(73.9%, 0%, 64.7%, 53.3%)
CIE-LABlab(43.73, -42.24, 34.22)
CIE-LCHlch(43.73, 54.36, 140.99°)
OKLaboklab(50.09% -0.1141 0.0801)
OKLCHoklch(50.09% 0.139 145)
XYZxyz(7.5793, 13.6513, 4.4256)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F772A #771F6C
analogous
#40771F #1F772A #1F7756
triadic
#1F772A #2A1F77 #772A1F
tetradic
#1F772A #1F4077 #771F6C #77561F
square
#1F772A #1F4077 #771F6C #77561F
split-complementary
#1F772A #561F77 #771F40
monochromatic
#061809 #124619 #1F772A #2CA83B #43CE54

Accessibility & contrast

On white

5.63
#1F772A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#1F772A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F772A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F772A#FFFFFF#000000##FFFFFF
##1F772A1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C21
Deuteranopia (green-blind)
#6F6531
Tritanopia (blue-blind)
#007467
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f772a;
/* rgb */ color: rgb(31, 119, 42);
/* oklch */ color: oklch(50.1% 0.139 145.0);
Tailwind
colors: {
  custom: {
    50: '#699f67',
    500: '#1f772a',
    950: '#000000',
  },
}
SCSS
$custom: #1f772a;
$custom-light: #699f67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f772a",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 42
  },
  "hsl": {
    "h": 127.5,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50089,
    "c": 0.13942,
    "h": 145
  },
  "luminance": 0.13652
}

Semantic roles & 50–950 ramp

primary
#1F772A
secondary
#AB479E
accent
#46CEE2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1F772A

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

Preview Lab → · Contrast checker → · Palette generator →

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