#1F7117#1F7117

#1F7117 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.2% C 0.145 H 141.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#1F7117
RGBrgb(31, 113, 23)
HSLhsl(115, 66%, 27%)
HSVhsv(115, 80%, 44%)
CMYKcmyk(72.6%, 0%, 79.6%, 55.7%)
CIE-LABlab(41.47, -41.96, 40.00)
CIE-LCHlch(41.47, 57.97, 136.38°)
OKLaboklab(48.17% -0.1144 0.0898)
OKLCHoklch(48.17% 0.145 141.9)
XYZxyz(6.6245, 12.1627, 2.8090)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7117 #691771
analogous
#4C7117 #1F7117 #17713C
triadic
#1F7117 #171F71 #71171F
tetradic
#1F7117 #174C71 #691771 #713C17
square
#1F7117 #174C71 #691771 #713C17
split-complementary
#1F7117 #3C1771 #71174C
monochromatic
#071905 #113E0D #1F7117 #2DA421 #3DD42E

Accessibility & contrast

On white

6.12
#1F7117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#1F7117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7117
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7117#FFFFFF#000000##FFFFFF
##1F71171.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#6A5F21
Tritanopia (blue-blind)
#0A6D60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #1f7117;
/* rgb */ color: rgb(31, 113, 23);
/* oklch */ color: oklch(48.2% 0.145 141.9);
Tailwind
colors: {
  custom: {
    50: '#689b5b',
    500: '#1f7117',
    950: '#000000',
  },
}
SCSS
$custom: #1f7117;
$custom-light: #689b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7117",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 23
  },
  "hsl": {
    "h": 114.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48168,
    "c": 0.14541,
    "h": 141.9
  },
  "luminance": 0.12163
}

Semantic roles & 50–950 ramp

primary
#1F7117
secondary
#9D3DA7
accent
#3FE9DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7117

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

Preview Lab → · Contrast checker → · Palette generator →

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