#1F7118#1F7118

#1F7118 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.2% C 0.145 H 142.0°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#1F7118
RGBrgb(31, 113, 24)
HSLhsl(115, 65%, 27%)
HSVhsv(115, 79%, 44%)
CMYKcmyk(72.6%, 0%, 78.8%, 55.7%)
CIE-LABlab(41.48, -41.89, 39.63)
CIE-LCHlch(41.48, 57.66, 136.58°)
OKLaboklab(48.18% -0.1141 0.0892)
OKLCHoklch(48.18% 0.145 142)
XYZxyz(6.6347, 12.1668, 2.8627)
Luminance0.1217 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7118 #6A1871
analogous
#4C7118 #1F7118 #18713E
triadic
#1F7118 #181F71 #71181F
tetradic
#1F7118 #184C71 #6A1871 #713E18
square
#1F7118 #184C71 #6A1871 #713E18
split-complementary
#1F7118 #3E1871 #71184C
monochromatic
#071905 #113F0D #1F7118 #2DA323 #3DD330

Accessibility & contrast

On white

6.12
#1F7118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#1F7118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7118
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7118#FFFFFF#000000##FFFFFF
##1F71181.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6A5F22
Tritanopia (blue-blind)
#0A6D60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f7118;
/* rgb */ color: rgb(31, 113, 24);
/* oklch */ color: oklch(48.2% 0.145 142.0);
Tailwind
colors: {
  custom: {
    50: '#689b5c',
    500: '#1f7118',
    950: '#000000',
  },
}
SCSS
$custom: #1f7118;
$custom-light: #689b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7118",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 115.281,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48176,
    "c": 0.14483,
    "h": 142
  },
  "luminance": 0.12168
}

Semantic roles & 50–950 ramp

primary
#1F7118
secondary
#9E3EA6
accent
#40E8DB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7118

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

Preview Lab → · Contrast checker → · Palette generator →

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