#1F7718#1F7718

#1F7718 is a mid, vivid green. Relative luminance 0.136; OKLCH L 49.9% C 0.152 H 142.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#1F7718
RGBrgb(31, 119, 24)
HSLhsl(116, 66%, 28%)
HSVhsv(116, 80%, 47%)
CMYKcmyk(73.9%, 0%, 79.8%, 53.3%)
CIE-LABlab(43.58, -44.02, 41.70)
CIE-LCHlch(43.58, 60.64, 136.55°)
OKLaboklab(49.92% -0.1199 0.0935)
OKLCHoklch(49.92% 0.152 142)
XYZxyz(7.3263, 13.5501, 3.0933)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7718 #701877
analogous
#4E7718 #1F7718 #187740
triadic
#1F7718 #181F77 #77181F
tetradic
#1F7718 #184E77 #701877 #774018
square
#1F7718 #184E77 #701877 #774018
split-complementary
#1F7718 #401877 #77184E
monochromatic
#071905 #12440E #1F7718 #2CAA22 #3FD633

Accessibility & contrast

On white

5.66
#1F7718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#1F7718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7718
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7718#FFFFFF#000000##FFFFFF
##1F77181.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B02
Deuteranopia (green-blind)
#706423
Tritanopia (blue-blind)
#057365
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f7718;
/* rgb */ color: rgb(31, 119, 24);
/* oklch */ color: oklch(49.9% 0.152 142.0);
Tailwind
colors: {
  custom: {
    50: '#6a9f5d',
    500: '#1f7718',
    950: '#000000',
  },
}
SCSS
$custom: #1f7718;
$custom-light: #6a9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7718",
  "rgb": {
    "r": 31,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 115.579,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49919,
    "c": 0.15204,
    "h": 142
  },
  "luminance": 0.13551
}

Semantic roles & 50–950 ramp

primary
#1F7718
secondary
#A43FAC
accent
#3EE9DD
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1F7718

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

Preview Lab → · Contrast checker → · Palette generator →

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