#1F7915#1F7915

#1F7915 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.156 H 141.8°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F7915
RGBrgb(31, 121, 21)
HSLhsl(114, 70%, 28%)
HSVhsv(114, 83%, 47%)
CMYKcmyk(74.4%, 0%, 82.6%, 52.5%)
CIE-LABlab(44.26, -44.93, 43.37)
CIE-LCHlch(44.26, 62.45, 136.01°)
OKLaboklab(50.48% -0.1225 0.0966)
OKLCHoklch(50.48% 0.156 141.8)
XYZxyz(7.5374, 14.0194, 3.0181)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7915 #6F1579
analogous
#517915 #1F7915 #15793D
triadic
#1F7915 #151F79 #79151F
tetradic
#1F7915 #155179 #6F1579 #793D15
square
#1F7915 #155179 #6F1579 #793D15
split-complementary
#1F7915 #3D1579 #791551
monochromatic
#071A05 #12450C #1F7915 #2CAD1E #3FDB2E

Accessibility & contrast

On white

5.52
#1F7915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#1F7915 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7915
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7915#FFFFFF#000000##FFFFFF
##1F79151.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#047567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7915;
/* rgb */ color: rgb(31, 121, 21);
/* oklch */ color: oklch(50.5% 0.156 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ba15c',
    500: '#1f7915',
    950: '#000000',
  },
}
SCSS
$custom: #1f7915;
$custom-light: #6ba15c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7915",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 114,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.50478,
    "c": 0.15596,
    "h": 141.8
  },
  "luminance": 0.1402
}

Semantic roles & 50–950 ramp

primary
#1F7915
secondary
#A33BAF
accent
#3BEDDB
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #1F7915

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

Preview Lab → · Contrast checker → · Palette generator →

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