#1F791D#1F791D

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

Color values

HEX#1F791D
RGBrgb(31, 121, 29)
HSLhsl(119, 61%, 29%)
HSVhsv(119, 76%, 47%)
CMYKcmyk(74.4%, 0%, 76%, 52.5%)
CIE-LABlab(44.31, -44.32, 40.55)
CIE-LCHlch(44.31, 60.08, 137.54°)
OKLaboklab(50.54% -0.1204 0.0918)
OKLCHoklch(50.54% 0.151 142.7)
XYZxyz(7.6238, 14.0539, 3.4731)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F791D #771D79
analogous
#4D791D #1F791D #1D7949
triadic
#1F791D #1D1F79 #791D1F
tetradic
#1F791D #1D4D79 #771D79 #79491D
square
#1F791D #1D4D79 #771D79 #79491D
split-complementary
#1F791D #491D79 #791D4D
monochromatic
#061906 #124811 #1F791D #2CAA29 #43D13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F791D#FFFFFF#000000##FFFFFF
##1F791D1.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)
#7C6D0C
Deuteranopia (green-blind)
#726627
Tritanopia (blue-blind)
#017567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f791d;
/* rgb */ color: rgb(31, 121, 29);
/* oklch */ color: oklch(50.5% 0.151 142.7);
Tailwind
colors: {
  custom: {
    50: '#6aa15f',
    500: '#1f791d',
    950: '#000000',
  },
}
SCSS
$custom: #1f791d;
$custom-light: #6aa15f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f791d",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 118.696,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50535,
    "c": 0.15146,
    "h": 142.7
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#1F791D
secondary
#AB45AD
accent
#43E4E1
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F791D

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

Preview Lab → · Contrast checker → · Palette generator →

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