#1F7F16#1F7F16

#1F7F16 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.162 H 141.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#1F7F16
RGBrgb(31, 127, 22)
HSLhsl(115, 70%, 29%)
HSVhsv(115, 83%, 50%)
CMYKcmyk(75.6%, 0%, 82.7%, 50.2%)
CIE-LABlab(46.35, -46.92, 45.02)
CIE-LCHlch(46.35, 65.03, 136.18°)
OKLaboklab(52.21% -0.1278 0.1002)
OKLCHoklch(52.21% 0.162 141.9)
XYZxyz(8.2988, 15.5270, 3.3186)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F16 #76167F
analogous
#547F16 #1F7F16 #167F42
triadic
#1F7F16 #161F7F #7F161F
tetradic
#1F7F16 #16547F #76167F #7F4216
square
#1F7F16 #16547F #76167F #7F4216
split-complementary
#1F7F16 #42167F #7F1654
monochromatic
#061A05 #124B0D #1F7F16 #2CB31F #42DC34

Accessibility & contrast

On white

5.11
#1F7F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#1F7F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F16
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F16#FFFFFF#000000##FFFFFF
##1F7F161.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f16;
/* rgb */ color: rgb(31, 127, 22);
/* oklch */ color: oklch(52.2% 0.162 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ca55d',
    500: '#1f7f16',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f16;
$custom-light: #6ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f16",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 114.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52213,
    "c": 0.16238,
    "h": 141.9
  },
  "luminance": 0.15528
}

Semantic roles & 50–950 ramp

primary
#1F7F16
secondary
#AA3DB4
accent
#3BEDDE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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