#1F7918#1F7918

#1F7918 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.154 H 142.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F7918
RGBrgb(31, 121, 24)
HSLhsl(116, 67%, 28%)
HSVhsv(116, 80%, 47%)
CMYKcmyk(74.4%, 0%, 80.2%, 52.5%)
CIE-LABlab(44.28, -44.72, 42.38)
CIE-LCHlch(44.28, 61.61, 136.54°)
OKLaboklab(50.5% -0.1218 0.0949)
OKLCHoklch(50.5% 0.154 142.1)
XYZxyz(7.5669, 14.0312, 3.1735)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7918 #721879
analogous
#4F7918 #1F7918 #187941
triadic
#1F7918 #181F79 #79181F
tetradic
#1F7918 #184F79 #721879 #794118
square
#1F7918 #184F79 #721879 #794118
split-complementary
#1F7918 #411879 #79184F
monochromatic
#071A05 #12460E #1F7918 #2CAC22 #40D735

Accessibility & contrast

On white

5.52
#1F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#1F7918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7918
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7918#FFFFFF#000000##FFFFFF
##1F79181.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#726623
Tritanopia (blue-blind)
#037567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7918;
/* rgb */ color: rgb(31, 121, 24);
/* oklch */ color: oklch(50.5% 0.154 142.1);
Tailwind
colors: {
  custom: {
    50: '#6aa15d',
    500: '#1f7918',
    950: '#000000',
  },
}
SCSS
$custom: #1f7918;
$custom-light: #6aa15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7918",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 115.67,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50497,
    "c": 0.15439,
    "h": 142.1
  },
  "luminance": 0.14032
}

Semantic roles & 50–950 ramp

primary
#1F7918
secondary
#A63FAE
accent
#3EEADD
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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