#1F8817#1F8817

#1F8817 is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.8% C 0.172 H 142.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#1F8817
RGBrgb(31, 136, 23)
HSLhsl(116, 71%, 31%)
HSVhsv(116, 83%, 53%)
CMYKcmyk(77.2%, 0%, 83.1%, 46.7%)
CIE-LABlab(49.45, -49.87, 47.63)
CIE-LCHlch(49.45, 68.96, 136.32°)
OKLaboklab(54.79% -0.1357 0.1057)
OKLCHoklch(54.79% 0.172 142.1)
XYZxyz(9.5233, 17.9604, 3.7752)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8817 #801788
analogous
#578817 #1F8817 #178847
triadic
#1F8817 #171F88 #88171F
tetradic
#1F8817 #175788 #801788 #884717
square
#1F8817 #175788 #801788 #884717
split-complementary
#1F8817 #471788 #881757
monochromatic
#071F05 #13540E #1F8817 #2BBC20 #47DE3B

Accessibility & contrast

On white

4.57
#1F8817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#1F8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8817
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8817#FFFFFF#000000##000000
##1F88171.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807225
Tritanopia (blue-blind)
#008473
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8817;
/* rgb */ color: rgb(31, 136, 23);
/* oklch */ color: oklch(54.8% 0.172 142.1);
Tailwind
colors: {
  custom: {
    50: '#6eac5f',
    500: '#1f8817',
    950: '#000000',
  },
}
SCSS
$custom: #1f8817;
$custom-light: #6eac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8817",
  "rgb": {
    "r": 31,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 115.752,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54792,
    "c": 0.17206,
    "h": 142.1
  },
  "luminance": 0.17961
}

Semantic roles & 50–950 ramp

primary
#1F8817
secondary
#B33FBC
accent
#3AEEE1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8817

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

Preview Lab → · Contrast checker → · Palette generator →

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