#1F7422#1F7422

#1F7422 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.1% C 0.142 H 143.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#1F7422
RGBrgb(31, 116, 34)
HSLhsl(122, 58%, 29%)
HSVhsv(122, 73%, 45%)
CMYKcmyk(73.3%, 0%, 70.7%, 54.5%)
CIE-LABlab(42.61, -42.05, 36.69)
CIE-LCHlch(42.61, 55.81, 138.90°)
OKLaboklab(49.14% -0.114 0.0844)
OKLCHoklch(49.14% 0.142 143.5)
XYZxyz(7.0988, 12.8968, 3.6283)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7422 #741F71
analogous
#47741F #1F7422 #1F744D
triadic
#1F7422 #221F74 #74221F
tetradic
#1F7422 #1F4774 #741F71 #744D1F
square
#1F7422 #1F4774 #741F71 #744D1F
split-complementary
#1F7422 #4D1F74 #741F47
monochromatic
#061807 #124414 #1F7422 #2CA430 #41CC46

Accessibility & contrast

On white

5.87
#1F7422 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#1F7422 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7422
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7422#FFFFFF#000000##FFFFFF
##1F74221.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766917
Deuteranopia (green-blind)
#6D622A
Tritanopia (blue-blind)
#037163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7422;
/* rgb */ color: rgb(31, 116, 34);
/* oklch */ color: oklch(49.1% 0.142 143.5);
Tailwind
colors: {
  custom: {
    50: '#699d62',
    500: '#1f7422',
    950: '#000000',
  },
}
SCSS
$custom: #1f7422;
$custom-light: #699d62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7422",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 34
  },
  "hsl": {
    "h": 122.118,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49135,
    "c": 0.14186,
    "h": 143.5
  },
  "luminance": 0.12898
}

Semantic roles & 50–950 ramp

primary
#1F7422
secondary
#A847A4
accent
#47DCE1
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #1F7422

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

Preview Lab → · Contrast checker → · Palette generator →

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