#1F6F17#1F6F17

#1F6F17 is a mid, vivid green. Relative luminance 0.117; OKLCH L 47.6% C 0.143 H 141.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#1F6F17
RGBrgb(31, 111, 23)
HSLhsl(115, 66%, 26%)
HSVhsv(115, 79%, 44%)
CMYKcmyk(72.1%, 0%, 79.3%, 56.5%)
CIE-LABlab(40.77, -41.24, 39.30)
CIE-LCHlch(40.77, 56.97, 136.38°)
OKLaboklab(47.59% -0.1124 0.0884)
OKLCHoklch(47.59% 0.143 141.8)
XYZxyz(6.4038, 11.7214, 2.7354)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6F17 #67176F
analogous
#4B6F17 #1F6F17 #176F3B
triadic
#1F6F17 #171F6F #6F171F
tetradic
#1F6F17 #174B6F #67176F #6F3B17
square
#1F6F17 #174B6F #67176F #6F3B17
split-complementary
#1F6F17 #3B176F #6F174B
monochromatic
#071905 #113C0C #1F6F17 #2DA222 #3CD32D

Accessibility & contrast

On white

6.28
#1F6F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#1F6F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F6F17
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6F17#FFFFFF#000000##FFFFFF
##1F6F171.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726404
Deuteranopia (green-blind)
#695E21
Tritanopia (blue-blind)
#0B6B5E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #1f6f17;
/* rgb */ color: rgb(31, 111, 23);
/* oklch */ color: oklch(47.6% 0.143 141.8);
Tailwind
colors: {
  custom: {
    50: '#68995b',
    500: '#1f6f17',
    950: '#000000',
  },
}
SCSS
$custom: #1f6f17;
$custom-light: #68995b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6f17",
  "rgb": {
    "r": 31,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 114.545,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.47585,
    "c": 0.14298,
    "h": 141.8
  },
  "luminance": 0.11722
}

Semantic roles & 50–950 ramp

primary
#1F6F17
secondary
#9B3DA5
accent
#3FE9D9
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F6F17

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

Preview Lab → · Contrast checker → · Palette generator →

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