#1F7D14#1F7D14

#1F7D14 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.161 H 141.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#1F7D14
RGBrgb(31, 125, 20)
HSLhsl(114, 72%, 28%)
HSVhsv(114, 84%, 49%)
CMYKcmyk(75.2%, 0%, 84%, 51%)
CIE-LABlab(45.65, -46.37, 44.98)
CIE-LCHlch(45.65, 64.60, 135.87°)
OKLaboklab(51.63% -0.1264 0.0998)
OKLCHoklch(51.63% 0.161 141.7)
XYZxyz(8.0245, 15.0081, 3.1356)
Luminance0.1501 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D14 #72147D
analogous
#537D14 #1F7D14 #147D3D
triadic
#1F7D14 #141F7D #7D141F
tetradic
#1F7D14 #14537D #72147D #7D3D14
square
#1F7D14 #14537D #72147D #7D3D14
split-complementary
#1F7D14 #3D147D #7D1453
monochromatic
#071A04 #12480C #1F7D14 #2CB21C #40DE2E

Accessibility & contrast

On white

5.25
#1F7D14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#1F7D14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D14
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D14#FFFFFF#000000##FFFFFF
##1F7D141.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#766921
Tritanopia (blue-blind)
#01796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d14;
/* rgb */ color: rgb(31, 125, 20);
/* oklch */ color: oklch(51.6% 0.161 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ca45c',
    500: '#1f7d14',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d14;
$custom-light: #6ca45c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d14",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 113.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51627,
    "c": 0.16103,
    "h": 141.7
  },
  "luminance": 0.15009
}

Semantic roles & 50–950 ramp

primary
#1F7D14
secondary
#A63AB2
accent
#39EFDC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #1F7D14

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

Preview Lab → · Contrast checker → · Palette generator →

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