#1F6B17#1F6B17

#1F6B17 is a mid, vivid green. Relative luminance 0.109; OKLCH L 46.4% C 0.138 H 141.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#1F6B17
RGBrgb(31, 107, 23)
HSLhsl(114, 65%, 25%)
HSVhsv(114, 79%, 42%)
CMYKcmyk(71%, 0%, 78.5%, 58%)
CIE-LABlab(39.36, -39.78, 37.90)
CIE-LCHlch(39.36, 54.94, 136.38°)
OKLaboklab(46.41% -0.1084 0.0854)
OKLCHoklch(46.41% 0.138 141.8)
XYZxyz(5.9771, 10.8679, 2.5932)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6B17 #63176B
analogous
#496B17 #1F6B17 #176B39
triadic
#1F6B17 #171F6B #6B171F
tetradic
#1F6B17 #17496B #63176B #6B3917
square
#1F6B17 #17496B #63176B #6B3917
split-complementary
#1F6B17 #39176B #6B1749
monochromatic
#071905 #10390C #1F6B17 #2E9D22 #3CD02D

Accessibility & contrast

On white

6.62
#1F6B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#1F6B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F6B17
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6B17#FFFFFF#000000##FFFFFF
##1F6B171.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6006
Deuteranopia (green-blind)
#655A20
Tritanopia (blue-blind)
#0E685B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f6b17;
/* rgb */ color: rgb(31, 107, 23);
/* oklch */ color: oklch(46.4% 0.138 141.8);
Tailwind
colors: {
  custom: {
    50: '#67965a',
    500: '#1f6b17',
    950: '#000000',
  },
}
SCSS
$custom: #1f6b17;
$custom-light: #67965a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6b17",
  "rgb": {
    "r": 31,
    "g": 107,
    "b": 23
  },
  "hsl": {
    "h": 114.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.46413,
    "c": 0.13806,
    "h": 141.8
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#1F6B17
secondary
#983DA1
accent
#40E8D8
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070D04
muted
#7A7E79

Preview Lab

Preview with #1F6B17

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

Preview Lab → · Contrast checker → · Palette generator →

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