#1F7618#1F7618

#1F7618 is a mid, vivid green. Relative luminance 0.133; OKLCH L 49.6% C 0.151 H 142.0°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#1F7618
RGBrgb(31, 118, 24)
HSLhsl(116, 66%, 28%)
HSVhsv(116, 80%, 46%)
CMYKcmyk(73.7%, 0%, 79.7%, 53.7%)
CIE-LABlab(43.23, -43.67, 41.36)
CIE-LCHlch(43.23, 60.15, 136.56°)
OKLaboklab(49.63% -0.1189 0.0928)
OKLCHoklch(49.63% 0.151 142)
XYZxyz(7.2080, 13.3133, 3.0538)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7618 #6F1876
analogous
#4E7618 #1F7618 #187640
triadic
#1F7618 #181F76 #76181F
tetradic
#1F7618 #184E76 #6F1876 #764018
square
#1F7618 #184E76 #6F1876 #764018
split-complementary
#1F7618 #401876 #76184E
monochromatic
#071905 #12430E #1F7618 #2CA922 #3FD533

Accessibility & contrast

On white

5.73
#1F7618 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#1F7618 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7618
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7618#FFFFFF#000000##FFFFFF
##1F76181.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A03
Deuteranopia (green-blind)
#6F6423
Tritanopia (blue-blind)
#057264
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #1f7618;
/* rgb */ color: rgb(31, 118, 24);
/* oklch */ color: oklch(49.6% 0.151 142.0);
Tailwind
colors: {
  custom: {
    50: '#6a9e5d',
    500: '#1f7618',
    950: '#000000',
  },
}
SCSS
$custom: #1f7618;
$custom-light: #6a9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7618",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 24
  },
  "hsl": {
    "h": 115.532,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.49629,
    "c": 0.15084,
    "h": 142
  },
  "luminance": 0.13314
}

Semantic roles & 50–950 ramp

primary
#1F7618
secondary
#A33FAB
accent
#3FE9DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7618

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

Preview Lab → · Contrast checker → · Palette generator →

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