#1F7F15#1F7F15

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

Color values

HEX#1F7F15
RGBrgb(31, 127, 21)
HSLhsl(114, 72%, 29%)
HSVhsv(114, 83%, 50%)
CMYKcmyk(75.6%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.34, -46.99, 45.33)
CIE-LCHlch(46.34, 65.29, 136.03°)
OKLaboklab(52.21% -0.128 0.1006)
OKLCHoklch(52.21% 0.163 141.8)
XYZxyz(8.2893, 15.5233, 3.2687)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F15 #75157F
analogous
#547F15 #1F7F15 #157F40
triadic
#1F7F15 #151F7F #7F151F
tetradic
#1F7F15 #15547F #75157F #7F4015
square
#1F7F15 #15547F #75157F #7F4015
split-complementary
#1F7F15 #40157F #7F1554
monochromatic
#061A04 #124A0C #1F7F15 #2CB41E #42DD31

Accessibility & contrast

On white

5.12
#1F7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#1F7F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F15
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F15#FFFFFF#000000##FFFFFF
##1F7F151.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7f15;
/* rgb */ color: rgb(31, 127, 21);
/* oklch */ color: oklch(52.2% 0.163 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ca55d',
    500: '#1f7f15',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f15;
$custom-light: #6ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f15",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 114.34,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52208,
    "c": 0.16285,
    "h": 141.8
  },
  "luminance": 0.15524
}

Semantic roles & 50–950 ramp

primary
#1F7F15
secondary
#A93CB4
accent
#39EEDD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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