#1F8017#1F8017

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

Color values

HEX#1F8017
RGBrgb(31, 128, 23)
HSLhsl(115, 70%, 30%)
HSVhsv(115, 82%, 50%)
CMYKcmyk(75.8%, 0%, 82%, 49.8%)
CIE-LABlab(46.70, -47.20, 45.04)
CIE-LCHlch(46.70, 65.24, 136.34°)
OKLaboklab(52.51% -0.1285 0.1003)
OKLCHoklch(52.51% 0.163 142)
XYZxyz(8.4384, 15.7906, 3.4136)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8017 #781780
analogous
#538017 #1F8017 #178044
triadic
#1F8017 #171F80 #80171F
tetradic
#1F8017 #175380 #781780 #804417
square
#1F8017 #175380 #781780 #804417
split-complementary
#1F8017 #441780 #801753
monochromatic
#061A05 #124C0E #1F8017 #2CB420 #43DB36

Accessibility & contrast

On white

5.05
#1F8017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#1F8017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8017
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8017#FFFFFF#000000##FFFFFF
##1F80171.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f8017;
/* rgb */ color: rgb(31, 128, 23);
/* oklch */ color: oklch(52.5% 0.163 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ca65e',
    500: '#1f8017',
    950: '#000000',
  },
}
SCSS
$custom: #1f8017;
$custom-light: #6ca65e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8017",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 115.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52507,
    "c": 0.16303,
    "h": 142
  },
  "luminance": 0.15792
}

Semantic roles & 50–950 ramp

primary
#1F8017
secondary
#AB3EB4
accent
#3BECDF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F8017

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

Preview Lab → · Contrast checker → · Palette generator →

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