#1F791E#1F791E

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

Color values

HEX#1F791E
RGBrgb(31, 121, 30)
HSLhsl(119, 60%, 30%)
HSVhsv(119, 75%, 47%)
CMYKcmyk(74.4%, 0%, 75.2%, 52.5%)
CIE-LABlab(44.32, -44.24, 40.17)
CIE-LCHlch(44.32, 59.75, 137.76°)
OKLaboklab(50.54% -0.1201 0.0912)
OKLCHoklch(50.54% 0.151 142.8)
XYZxyz(7.6363, 14.0589, 3.5392)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F791E #781E79
analogous
#4C791E #1F791E #1E794B
triadic
#1F791E #1E1F79 #791E1F
tetradic
#1F791E #1E4C79 #781E79 #794B1E
square
#1F791E #1E4C79 #781E79 #794B1E
split-complementary
#1F791E #4B1E79 #791E4C
monochromatic
#061906 #124812 #1F791E #2CAA2A #43D041

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F791E#FFFFFF#000000##FFFFFF
##1F791E1.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)
#7C6D0E
Deuteranopia (green-blind)
#716627
Tritanopia (blue-blind)
#017567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f791e;
/* rgb */ color: rgb(31, 121, 30);
/* oklch */ color: oklch(50.5% 0.151 142.8);
Tailwind
colors: {
  custom: {
    50: '#6aa160',
    500: '#1f791e',
    950: '#000000',
  },
}
SCSS
$custom: #1f791e;
$custom-light: #6aa160;
$custom-dark: #000000;
JSON
{
  "hex": "#1f791e",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 119.341,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50543,
    "c": 0.15082,
    "h": 142.8
  },
  "luminance": 0.1406
}

Semantic roles & 50–950 ramp

primary
#1F791E
secondary
#AB46AD
accent
#44E3E2
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F791E

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

Preview Lab → · Contrast checker → · Palette generator →

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