#1F8B17#1F8B17

#1F8B17 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.6% C 0.175 H 142.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F8B17
RGBrgb(31, 139, 23)
HSLhsl(116, 72%, 32%)
HSVhsv(116, 83%, 55%)
CMYKcmyk(77.7%, 0%, 83.5%, 45.5%)
CIE-LABlab(50.47, -50.86, 48.58)
CIE-LCHlch(50.47, 70.33, 136.31°)
OKLaboklab(55.64% -0.1384 0.1077)
OKLCHoklch(55.64% 0.175 142.1)
XYZxyz(9.9518, 18.8173, 3.9181)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B17 #83178B
analogous
#598B17 #1F8B17 #178B49
triadic
#1F8B17 #171F8B #8B171F
tetradic
#1F8B17 #17598B #83178B #8B4917
square
#1F8B17 #17598B #83178B #8B4917
split-complementary
#1F8B17 #49178B #8B1759
monochromatic
#082206 #13560E #1F8B17 #2BC020 #49DF3D

Accessibility & contrast

On white

4.41
#1F8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#1F8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B17
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B17#FFFFFF#000000##000000
##1F8B171.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837526
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b17;
/* rgb */ color: rgb(31, 139, 23);
/* oklch */ color: oklch(55.6% 0.175 142.1);
Tailwind
colors: {
  custom: {
    50: '#6fae5f',
    500: '#1f8b17',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b17;
$custom-light: #6fae5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b17",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 115.862,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55644,
    "c": 0.17539,
    "h": 142.1
  },
  "luminance": 0.18818
}

Semantic roles & 50–950 ramp

primary
#1F8B17
secondary
#B63FBF
accent
#39EEE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #1F8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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