#1F8016#1F8016

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

Color values

HEX#1F8016
RGBrgb(31, 128, 22)
HSLhsl(115, 71%, 29%)
HSVhsv(115, 83%, 50%)
CMYKcmyk(75.8%, 0%, 82.8%, 49.8%)
CIE-LABlab(46.69, -47.26, 45.35)
CIE-LCHlch(46.69, 65.50, 136.18°)
OKLaboklab(52.5% -0.1287 0.1008)
OKLCHoklch(52.5% 0.164 141.9)
XYZxyz(8.4286, 15.7866, 3.3618)
Luminance0.1579 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8016 #771680
analogous
#548016 #1F8016 #168042
triadic
#1F8016 #161F80 #80161F
tetradic
#1F8016 #165480 #771680 #804216
square
#1F8016 #165480 #771680 #804216
split-complementary
#1F8016 #421680 #801654
monochromatic
#061A04 #124C0D #1F8016 #2CB41F #43DC34

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8016#FFFFFF#000000##FFFFFF
##1F80161.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)
#786C23
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f8016;
/* rgb */ color: rgb(31, 128, 22);
/* oklch */ color: oklch(52.5% 0.164 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ca65d',
    500: '#1f8016',
    950: '#000000',
  },
}
SCSS
$custom: #1f8016;
$custom-light: #6ca65d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8016",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 114.906,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52501,
    "c": 0.16352,
    "h": 141.9
  },
  "luminance": 0.15788
}

Semantic roles & 50–950 ramp

primary
#1F8016
secondary
#AB3DB5
accent
#3AEDDE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F8016

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

Preview Lab → · Contrast checker → · Palette generator →

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