#1F791B#1F791B

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

Color values

HEX#1F791B
RGBrgb(31, 121, 27)
HSLhsl(117, 64%, 29%)
HSVhsv(117, 78%, 47%)
CMYKcmyk(74.4%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.30, -44.49, 41.31)
CIE-LCHlch(44.30, 60.71, 137.13°)
OKLaboklab(50.52% -0.121 0.0931)
OKLCHoklch(50.52% 0.153 142.4)
XYZxyz(7.5998, 14.0443, 3.3470)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F791B #751B79
analogous
#4E791B #1F791B #1B7946
triadic
#1F791B #1B1F79 #791B1F
tetradic
#1F791B #1B4E79 #751B79 #79461B
square
#1F791B #1B4E79 #751B79 #79461B
split-complementary
#1F791B #461B79 #791B4E
monochromatic
#061906 #124710 #1F791B #2CAB26 #42D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F791B#FFFFFF#000000##FFFFFF
##1F791B1.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)
#7C6D08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#027567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f791b;
/* rgb */ color: rgb(31, 121, 27);
/* oklch */ color: oklch(50.5% 0.153 142.4);
Tailwind
colors: {
  custom: {
    50: '#6aa15e',
    500: '#1f791b',
    950: '#000000',
  },
}
SCSS
$custom: #1f791b;
$custom-light: #6aa15e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f791b",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 117.447,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50519,
    "c": 0.15268,
    "h": 142.4
  },
  "luminance": 0.14045
}

Semantic roles & 50–950 ramp

primary
#1F791B
secondary
#A943AD
accent
#41E7E0
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F791B

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

Preview Lab → · Contrast checker → · Palette generator →

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