#1F7C17#1F7C17

#1F7C17 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.158 H 142.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#1F7C17
RGBrgb(31, 124, 23)
HSLhsl(115, 69%, 29%)
HSVhsv(115, 81%, 49%)
CMYKcmyk(75%, 0%, 81.5%, 51.4%)
CIE-LABlab(45.31, -45.83, 43.72)
CIE-LCHlch(45.31, 63.34, 136.35°)
OKLaboklab(51.36% -0.1248 0.0976)
OKLCHoklch(51.36% 0.158 142)
XYZxyz(7.9269, 14.7676, 3.2431)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C17 #74177C
analogous
#527C17 #1F7C17 #177C42
triadic
#1F7C17 #171F7C #7C171F
tetradic
#1F7C17 #17527C #74177C #7C4217
square
#1F7C17 #17527C #74177C #7C4217
split-complementary
#1F7C17 #42177C #7C1752
monochromatic
#061A05 #12480D #1F7C17 #2CB021 #41D934

Accessibility & contrast

On white

5.31
#1F7C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#1F7C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C17
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C17#FFFFFF#000000##FFFFFF
##1F7C171.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#756823
Tritanopia (blue-blind)
#017869
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7c17;
/* rgb */ color: rgb(31, 124, 23);
/* oklch */ color: oklch(51.4% 0.158 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba35d',
    500: '#1f7c17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c17;
$custom-light: #6ba35d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c17",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 115.248,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51357,
    "c": 0.15843,
    "h": 142
  },
  "luminance": 0.14768
}

Semantic roles & 50–950 ramp

primary
#1F7C17
secondary
#A83EB1
accent
#3CECDE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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