#1F7D19#1F7D19

#1F7D19 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.159 H 142.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1F7D19
RGBrgb(31, 125, 25)
HSLhsl(116, 67%, 29%)
HSVhsv(116, 80%, 49%)
CMYKcmyk(75.2%, 0%, 80%, 51%)
CIE-LABlab(45.67, -46.04, 43.38)
CIE-LCHlch(45.67, 63.26, 136.70°)
OKLaboklab(51.66% -0.1253 0.0972)
OKLCHoklch(51.66% 0.159 142.2)
XYZxyz(8.0737, 15.0278, 3.3947)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D19 #77197D
analogous
#517D19 #1F7D19 #197D45
triadic
#1F7D19 #191F7D #7D191F
tetradic
#1F7D19 #19517D #77197D #7D4519
square
#1F7D19 #19517D #77197D #7D4519
split-complementary
#1F7D19 #45197D #7D1951
monochromatic
#061A05 #124A0F #1F7D19 #2CB023 #43D739

Accessibility & contrast

On white

5.24
#1F7D19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F7D19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D19
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D19#FFFFFF#000000##FFFFFF
##1F7D191.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807101
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d19;
/* rgb */ color: rgb(31, 125, 25);
/* oklch */ color: oklch(51.7% 0.159 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ba45e',
    500: '#1f7d19',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d19;
$custom-light: #6ba45e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d19",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 116.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51658,
    "c": 0.15854,
    "h": 142.2
  },
  "luminance": 0.15029
}

Semantic roles & 50–950 ramp

primary
#1F7D19
secondary
#AB40B1
accent
#3EEADF
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D19

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

Preview Lab → · Contrast checker → · Palette generator →

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