#1F7622#1F7622

#1F7622 is a mid, vivid green. Relative luminance 0.134; OKLCH L 49.7% C 0.144 H 143.5°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#1F7622
RGBrgb(31, 118, 34)
HSLhsl(122, 58%, 29%)
HSVhsv(122, 74%, 46%)
CMYKcmyk(73.7%, 0%, 71.2%, 53.7%)
CIE-LABlab(43.30, -42.78, 37.43)
CIE-LCHlch(43.30, 56.85, 138.81°)
OKLaboklab(49.71% -0.116 0.086)
OKLCHoklch(49.71% 0.144 143.5)
XYZxyz(7.3318, 13.3629, 3.7060)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7622 #761F73
analogous
#48761F #1F7622 #1F764E
triadic
#1F7622 #221F76 #76221F
tetradic
#1F7622 #1F4876 #761F73 #764E1F
square
#1F7622 #1F4876 #761F73 #764E1F
split-complementary
#1F7622 #4E1F76 #761F48
monochromatic
#061807 #124614 #1F7622 #2CA630 #42CD47

Accessibility & contrast

On white

5.72
#1F7622 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#1F7622 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7622
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7622#FFFFFF#000000##FFFFFF
##1F76221.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B16
Deuteranopia (green-blind)
#6E642A
Tritanopia (blue-blind)
#017365
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #1f7622;
/* rgb */ color: rgb(31, 118, 34);
/* oklch */ color: oklch(49.7% 0.144 143.5);
Tailwind
colors: {
  custom: {
    50: '#699e62',
    500: '#1f7622',
    950: '#000000',
  },
}
SCSS
$custom: #1f7622;
$custom-light: #699e62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7622",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 122.069,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.49714,
    "c": 0.14438,
    "h": 143.5
  },
  "luminance": 0.13364
}

Semantic roles & 50–950 ramp

primary
#1F7622
secondary
#AA47A6
accent
#46DCE2
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #1F7622

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

Preview Lab → · Contrast checker → · Palette generator →

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