#1F7420#1F7420

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

Color values

HEX#1F7420
RGBrgb(31, 116, 32)
HSLhsl(121, 58%, 29%)
HSVhsv(121, 73%, 45%)
CMYKcmyk(73.3%, 0%, 72.4%, 54.5%)
CIE-LABlab(42.59, -42.26, 37.54)
CIE-LCHlch(42.59, 56.53, 138.38°)
OKLaboklab(49.12% -0.1147 0.086)
OKLCHoklch(49.12% 0.143 143.1)
XYZxyz(7.0707, 12.8856, 3.4808)
Luminance0.1289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7420 #741F73
analogous
#49741F #1F7420 #1F744B
triadic
#1F7420 #201F74 #74201F
tetradic
#1F7420 #1F4974 #741F73 #744B1F
square
#1F7420 #1F4974 #741F73 #744B1F
split-complementary
#1F7420 #4B1F74 #741F49
monochromatic
#061807 #124413 #1F7420 #2CA42D #41CC43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7420#FFFFFF#000000##FFFFFF
##1F74201.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)
#776913
Deuteranopia (green-blind)
#6D6228
Tritanopia (blue-blind)
#047163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7420;
/* rgb */ color: rgb(31, 116, 32);
/* oklch */ color: oklch(49.1% 0.143 143.1);
Tailwind
colors: {
  custom: {
    50: '#699d60',
    500: '#1f7420',
    950: '#000000',
  },
}
SCSS
$custom: #1f7420;
$custom-light: #699d60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7420",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 32
  },
  "hsl": {
    "h": 120.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49116,
    "c": 0.14331,
    "h": 143.1
  },
  "luminance": 0.12886
}

Semantic roles & 50–950 ramp

primary
#1F7420
secondary
#A847A7
accent
#47DFE1
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #1F7420

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

Preview Lab → · Contrast checker → · Palette generator →

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