#1F7E16#1F7E16

#1F7E16 is a mid, vivid green. Relative luminance 0.153; OKLCH L 51.9% C 0.161 H 141.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#1F7E16
RGBrgb(31, 126, 22)
HSLhsl(115, 70%, 29%)
HSVhsv(115, 83%, 49%)
CMYKcmyk(75.4%, 0%, 82.5%, 50.6%)
CIE-LABlab(46.00, -46.58, 44.70)
CIE-LCHlch(46.00, 64.56, 136.18°)
OKLaboklab(51.93% -0.1269 0.0995)
OKLCHoklch(51.93% 0.161 141.9)
XYZxyz(8.1703, 15.2700, 3.2757)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E16 #75167E
analogous
#537E16 #1F7E16 #167E41
triadic
#1F7E16 #161F7E #7E161F
tetradic
#1F7E16 #16537E #75167E #7E4116
square
#1F7E16 #16537E #75167E #7E4116
split-complementary
#1F7E16 #41167E #7E1653
monochromatic
#061A05 #124A0D #1F7E16 #2CB21F #42DB33

Accessibility & contrast

On white

5.18
#1F7E16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#1F7E16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E16
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E16#FFFFFF#000000##FFFFFF
##1F7E161.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e16;
/* rgb */ color: rgb(31, 126, 22);
/* oklch */ color: oklch(51.9% 0.161 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ca45d',
    500: '#1f7e16',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e16;
$custom-light: #6ca45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e16",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 114.808,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51926,
    "c": 0.16123,
    "h": 141.9
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7E16

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

Preview Lab → · Contrast checker → · Palette generator →

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