#1F7A19#1F7A19

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

Color values

HEX#1F7A19
RGBrgb(31, 122, 25)
HSLhsl(116, 66%, 29%)
HSVhsv(116, 80%, 48%)
CMYKcmyk(74.6%, 0%, 79.5%, 52.2%)
CIE-LABlab(44.63, -45.00, 42.37)
CIE-LCHlch(44.63, 61.81, 136.72°)
OKLaboklab(50.79% -0.1225 0.0951)
OKLCHoklch(50.79% 0.155 142.2)
XYZxyz(7.6996, 14.2797, 3.2700)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A19 #74197A
analogous
#507A19 #1F7A19 #197A44
triadic
#1F7A19 #191F7A #7A191F
tetradic
#1F7A19 #19507A #74197A #7A4419
square
#1F7A19 #19507A #74197A #7A4419
split-complementary
#1F7A19 #44197A #7A1950
monochromatic
#061905 #12470F #1F7A19 #2CAD23 #41D637

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7A19#FFFFFF#000000##FFFFFF
##1F7A191.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)
#7D6E03
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#027668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a19;
/* rgb */ color: rgb(31, 122, 25);
/* oklch */ color: oklch(50.8% 0.155 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba15e',
    500: '#1f7a19',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a19;
$custom-light: #6ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a19",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 25
  },
  "hsl": {
    "h": 116.289,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50793,
    "c": 0.15502,
    "h": 142.2
  },
  "luminance": 0.14281
}

Semantic roles & 50–950 ramp

primary
#1F7A19
secondary
#A840AF
accent
#3FE9DE
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7A19

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

Preview Lab → · Contrast checker → · Palette generator →

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