#1F791A#1F791A

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

Color values

HEX#1F791A
RGBrgb(31, 121, 26)
HSLhsl(117, 65%, 29%)
HSVhsv(117, 79%, 47%)
CMYKcmyk(74.4%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.29, -44.57, 41.67)
CIE-LCHlch(44.29, 61.02, 136.92°)
OKLaboklab(50.51% -0.1213 0.0937)
OKLCHoklch(50.51% 0.153 142.3)
XYZxyz(7.5885, 14.0398, 3.2871)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F791A #741A79
analogous
#4F791A #1F791A #1A7945
triadic
#1F791A #1A1F79 #791A1F
tetradic
#1F791A #1A4F79 #741A79 #79451A
square
#1F791A #1A4F79 #741A79 #79451A
split-complementary
#1F791A #451A79 #791A4F
monochromatic
#061905 #12470F #1F791A #2CAB25 #41D439

Accessibility & contrast

On white

5.51
#1F791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F791A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F791A#FFFFFF#000000##FFFFFF
##1F791A1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D05
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#027567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f791a;
/* rgb */ color: rgb(31, 121, 26);
/* oklch */ color: oklch(50.5% 0.153 142.3);
Tailwind
colors: {
  custom: {
    50: '#6aa15e',
    500: '#1f791a',
    950: '#000000',
  },
}
SCSS
$custom: #1f791a;
$custom-light: #6aa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f791a",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 116.842,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50512,
    "c": 0.15327,
    "h": 142.3
  },
  "luminance": 0.14041
}

Semantic roles & 50–950 ramp

primary
#1F791A
secondary
#A841AD
accent
#40E8DF
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F791A

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

Preview Lab → · Contrast checker → · Palette generator →

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