#1F7E17#1F7E17

#1F7E17 is a mid, vivid green. Relative luminance 0.153; OKLCH L 51.9% C 0.161 H 142.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7E17
RGBrgb(31, 126, 23)
HSLhsl(115, 69%, 29%)
HSVhsv(115, 82%, 49%)
CMYKcmyk(75.4%, 0%, 81.7%, 50.6%)
CIE-LABlab(46.01, -46.52, 44.38)
CIE-LCHlch(46.01, 64.29, 136.35°)
OKLaboklab(51.93% -0.1267 0.099)
OKLCHoklch(51.93% 0.161 142)
XYZxyz(8.1801, 15.2740, 3.3275)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E17 #76177E
analogous
#537E17 #1F7E17 #177E43
triadic
#1F7E17 #171F7E #7E171F
tetradic
#1F7E17 #17537E #76177E #7E4317
square
#1F7E17 #17537E #76177E #7E4317
split-complementary
#1F7E17 #43177E #7E1753
monochromatic
#061A05 #124A0E #1F7E17 #2CB220 #42DA35

Accessibility & contrast

On white

5.18
#1F7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#1F7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E17
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E17#FFFFFF#000000##FFFFFF
##1F7E171.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e17;
/* rgb */ color: rgb(31, 126, 23);
/* oklch */ color: oklch(51.9% 0.161 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ca45d',
    500: '#1f7e17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e17;
$custom-light: #6ca45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e17",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 115.34,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51932,
    "c": 0.16074,
    "h": 142
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

primary
#1F7E17
secondary
#AA3EB3
accent
#3CECDE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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