#1F8D16#1F8D16

#1F8D16 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.2% C 0.178 H 142.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#1F8D16
RGBrgb(31, 141, 22)
HSLhsl(115, 73%, 32%)
HSVhsv(115, 84%, 55%)
CMYKcmyk(78%, 0%, 84.4%, 44.7%)
CIE-LABlab(51.15, -51.57, 49.49)
CIE-LCHlch(51.15, 71.47, 136.18°)
OKLaboklab(56.21% -0.1404 0.1095)
OKLCHoklch(56.21% 0.178 142)
XYZxyz(10.2342, 19.3978, 3.9637)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D16 #84168D
analogous
#5B8D16 #1F8D16 #168D49
triadic
#1F8D16 #161F8D #8D161F
tetradic
#1F8D16 #165B8D #84168D #8D4916
square
#1F8D16 #165B8D #84168D #8D4916
split-complementary
#1F8D16 #49168D #8D165B
monochromatic
#082305 #13580E #1F8D16 #2BC21E #49E13D

Accessibility & contrast

On white

4.30
#1F8D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#1F8D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D16
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D16#FFFFFF#000000##000000
##1F8D161.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#008878
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d16;
/* rgb */ color: rgb(31, 141, 22);
/* oklch */ color: oklch(56.2% 0.178 142.0);
Tailwind
colors: {
  custom: {
    50: '#6faf5f',
    500: '#1f8d16',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d16;
$custom-light: #6faf5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d16",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 115.462,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56205,
    "c": 0.17802,
    "h": 142
  },
  "luminance": 0.19399
}

Semantic roles & 50–950 ramp

primary
#1F8D16
secondary
#B73EC1
accent
#38F0E2
background
#F7FAF5
surface
#EDF5EA
border
#C8CFC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #1F8D16

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

Preview Lab → · Contrast checker → · Palette generator →

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