#1F8617#1F8617

#1F8617 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.2% C 0.170 H 142.1°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#1F8617
RGBrgb(31, 134, 23)
HSLhsl(116, 71%, 31%)
HSVhsv(116, 83%, 53%)
CMYKcmyk(76.9%, 0%, 82.8%, 47.5%)
CIE-LABlab(48.76, -49.21, 46.98)
CIE-LCHlch(48.76, 68.04, 136.33°)
OKLaboklab(54.22% -0.134 0.1044)
OKLCHoklch(54.22% 0.17 142.1)
XYZxyz(9.2443, 17.4023, 3.6822)
Luminance0.1740 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8617 #7E1786
analogous
#568617 #1F8617 #178646
triadic
#1F8617 #171F86 #86171F
tetradic
#1F8617 #175686 #7E1786 #864617
square
#1F8617 #175686 #7E1786 #864617
split-complementary
#1F8617 #461786 #861756
monochromatic
#071E05 #13520E #1F8617 #2BBA20 #46DD3A

Accessibility & contrast

On white

4.69
#1F8617 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#1F8617 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8617
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8617#FFFFFF#000000##FFFFFF
##1F86171.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#008272
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f8617;
/* rgb */ color: rgb(31, 134, 23);
/* oklch */ color: oklch(54.2% 0.170 142.1);
Tailwind
colors: {
  custom: {
    50: '#6eaa5f',
    500: '#1f8617',
    950: '#000000',
  },
}
SCSS
$custom: #1f8617;
$custom-light: #6eaa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8617",
  "rgb": {
    "r": 31,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 115.676,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54222,
    "c": 0.16982,
    "h": 142.1
  },
  "luminance": 0.17403
}

Semantic roles & 50–950 ramp

primary
#1F8617
secondary
#B13FBA
accent
#3AEDE1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8617

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

Preview Lab → · Contrast checker → · Palette generator →

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