#1F7D17#1F7D17

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

Color values

HEX#1F7D17
RGBrgb(31, 125, 23)
HSLhsl(115, 69%, 29%)
HSVhsv(115, 82%, 49%)
CMYKcmyk(75.2%, 0%, 81.6%, 51%)
CIE-LABlab(45.66, -46.18, 44.05)
CIE-LCHlch(45.66, 63.82, 136.35°)
OKLaboklab(51.64% -0.1257 0.0983)
OKLCHoklch(51.64% 0.16 142)
XYZxyz(8.0529, 15.0195, 3.2851)
Luminance0.1502 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D17 #75177D
analogous
#527D17 #1F7D17 #177D42
triadic
#1F7D17 #171F7D #7D171F
tetradic
#1F7D17 #17527D #75177D #7D4217
square
#1F7D17 #17527D #75177D #7D4217
split-complementary
#1F7D17 #42177D #7D1752
monochromatic
#061A05 #12490D #1F7D17 #2CB121 #42DA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D17#FFFFFF#000000##FFFFFF
##1F7D171.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7d17;
/* rgb */ color: rgb(31, 125, 23);
/* oklch */ color: oklch(51.6% 0.160 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ba45d',
    500: '#1f7d17',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d17;
$custom-light: #6ba45d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d17",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 115.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51644,
    "c": 0.15959,
    "h": 142
  },
  "luminance": 0.1502
}

Semantic roles & 50–950 ramp

primary
#1F7D17
secondary
#A93EB2
accent
#3CECDE
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D17

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

Preview Lab → · Contrast checker → · Palette generator →

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