#1F7A17#1F7A17

#1F7A17 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.8% C 0.156 H 142.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#1F7A17
RGBrgb(31, 122, 23)
HSLhsl(115, 68%, 28%)
HSVhsv(115, 81%, 48%)
CMYKcmyk(74.6%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.62, -45.14, 43.05)
CIE-LCHlch(44.62, 62.38, 136.36°)
OKLaboklab(50.78% -0.1229 0.0962)
OKLCHoklch(50.78% 0.156 142)
XYZxyz(7.6788, 14.2714, 3.1604)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A17 #72177A
analogous
#507A17 #1F7A17 #177A40
triadic
#1F7A17 #171F7A #7A171F
tetradic
#1F7A17 #17507A #72177A #7A4017
square
#1F7A17 #17507A #72177A #7A4017
split-complementary
#1F7A17 #40177A #7A1750
monochromatic
#071A05 #12470D #1F7A17 #2CAD21 #40D933

Accessibility & contrast

On white

5.45
#1F7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#1F7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A17
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A17#FFFFFF#000000##FFFFFF
##1F7A171.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#027668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a17;
/* rgb */ color: rgb(31, 122, 23);
/* oklch */ color: oklch(50.8% 0.156 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba15d',
    500: '#1f7a17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a17;
$custom-light: #6ba15d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a17",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 115.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5078,
    "c": 0.1561,
    "h": 142
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#1F7A17
secondary
#A63EAF
accent
#3DEBDD
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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