#1F7817#1F7817

#1F7817 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.2% C 0.154 H 141.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#1F7817
RGBrgb(31, 120, 23)
HSLhsl(115, 68%, 28%)
HSVhsv(115, 81%, 47%)
CMYKcmyk(74.2%, 0%, 80.8%, 52.9%)
CIE-LABlab(43.92, -44.45, 42.38)
CIE-LCHlch(43.92, 61.41, 136.36°)
OKLaboklab(50.2% -0.1211 0.0948)
OKLCHoklch(50.2% 0.154 141.9)
XYZxyz(7.4358, 13.7853, 3.0794)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7817 #701778
analogous
#4F7817 #1F7817 #177840
triadic
#1F7817 #171F78 #78171F
tetradic
#1F7817 #174F78 #701778 #784017
square
#1F7817 #174F78 #701778 #784017
split-complementary
#1F7817 #401778 #78174F
monochromatic
#071A05 #12450D #1F7817 #2CAB21 #3FD832

Accessibility & contrast

On white

5.59
#1F7817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#1F7817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7817
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7817#FFFFFF#000000##FFFFFF
##1F78171.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#716522
Tritanopia (blue-blind)
#047466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f7817;
/* rgb */ color: rgb(31, 120, 23);
/* oklch */ color: oklch(50.2% 0.154 141.9);
Tailwind
colors: {
  custom: {
    50: '#6aa05c',
    500: '#1f7817',
    950: '#000000',
  },
}
SCSS
$custom: #1f7817;
$custom-light: #6aa05c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7817",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 115.052,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.15376,
    "h": 141.9
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#1F7817
secondary
#A43EAD
accent
#3DEBDC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #1F7817

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

Preview Lab → · Contrast checker → · Palette generator →

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