#1F7217#1F7217

#1F7217 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.147 H 141.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#1F7217
RGBrgb(31, 114, 23)
HSLhsl(115, 66%, 27%)
HSVhsv(115, 80%, 45%)
CMYKcmyk(72.8%, 0%, 79.8%, 55.3%)
CIE-LABlab(41.82, -42.32, 40.34)
CIE-LCHlch(41.82, 58.47, 136.37°)
OKLaboklab(48.46% -0.1153 0.0905)
OKLCHoklch(48.46% 0.147 141.9)
XYZxyz(6.7367, 12.3871, 2.8464)
Luminance0.1239 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7217 #6A1772
analogous
#4D7217 #1F7217 #17723D
triadic
#1F7217 #171F72 #72171F
tetradic
#1F7217 #174D72 #6A1772 #723D17
square
#1F7217 #174D72 #6A1772 #723D17
split-complementary
#1F7217 #3D1772 #72174D
monochromatic
#071905 #113F0D #1F7217 #2DA521 #3DD52E

Accessibility & contrast

On white

6.04
#1F7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#1F7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7217
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7217#FFFFFF#000000##FFFFFF
##1F72171.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6B6021
Tritanopia (blue-blind)
#096E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7217;
/* rgb */ color: rgb(31, 114, 23);
/* oklch */ color: oklch(48.5% 0.147 141.9);
Tailwind
colors: {
  custom: {
    50: '#699b5b',
    500: '#1f7217',
    950: '#000000',
  },
}
SCSS
$custom: #1f7217;
$custom-light: #699b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7217",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 114.725,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.4846,
    "c": 0.14662,
    "h": 141.9
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#1F7217
secondary
#9E3DA8
accent
#3EE9DA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F7217

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

Preview Lab → · Contrast checker → · Palette generator →

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