#1F7A18#1F7A18

#1F7A18 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.8% C 0.156 H 142.1°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#1F7A18
RGBrgb(31, 122, 24)
HSLhsl(116, 67%, 29%)
HSVhsv(116, 80%, 48%)
CMYKcmyk(74.6%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.63, -45.07, 42.72)
CIE-LCHlch(44.63, 62.10, 136.54°)
OKLaboklab(50.79% -0.1227 0.0956)
OKLCHoklch(50.79% 0.156 142.1)
XYZxyz(7.6890, 14.2755, 3.2142)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A18 #73187A
analogous
#507A18 #1F7A18 #187A42
triadic
#1F7A18 #181F7A #7A181F
tetradic
#1F7A18 #18507A #73187A #7A4218
square
#1F7A18 #18507A #73187A #7A4218
split-complementary
#1F7A18 #42187A #7A1850
monochromatic
#061A05 #12470E #1F7A18 #2CAD22 #41D735

Accessibility & contrast

On white

5.45
#1F7A18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#1F7A18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A18
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A18#FFFFFF#000000##FFFFFF
##1F7A181.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#027668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a18;
/* rgb */ color: rgb(31, 122, 24);
/* oklch */ color: oklch(50.8% 0.156 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ba15d',
    500: '#1f7a18',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a18;
$custom-light: #6ba15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a18",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 115.714,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50786,
    "c": 0.15557,
    "h": 142.1
  },
  "luminance": 0.14276
}

Semantic roles & 50–950 ramp

primary
#1F7A18
secondary
#A73FAF
accent
#3EEADE
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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