#1F8917#1F8917

#1F8917 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.1% C 0.173 H 142.1°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F8917
RGBrgb(31, 137, 23)
HSLhsl(116, 71%, 31%)
HSVhsv(116, 83%, 54%)
CMYKcmyk(77.4%, 0%, 83.2%, 46.3%)
CIE-LABlab(49.79, -50.20, 47.94)
CIE-LCHlch(49.79, 69.42, 136.32°)
OKLaboklab(55.08% -0.1366 0.1064)
OKLCHoklch(55.08% 0.173 142.1)
XYZxyz(9.6648, 18.2434, 3.8224)
Luminance0.1824 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8917 #811789
analogous
#588917 #1F8917 #178948
triadic
#1F8917 #171F89 #89171F
tetradic
#1F8917 #175889 #811789 #894817
square
#1F8917 #175889 #811789 #894817
split-complementary
#1F8917 #481789 #891758
monochromatic
#072005 #13550E #1F8917 #2BBD20 #48DE3C

Accessibility & contrast

On white

4.52
#1F8917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8917
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8917#FFFFFF#000000##000000
##1F89171.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817325
Tritanopia (blue-blind)
#008574
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8917;
/* rgb */ color: rgb(31, 137, 23);
/* oklch */ color: oklch(55.1% 0.173 142.1);
Tailwind
colors: {
  custom: {
    50: '#6eac5f',
    500: '#1f8917',
    950: '#000000',
  },
}
SCSS
$custom: #1f8917;
$custom-light: #6eac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8917",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 115.789,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55076,
    "c": 0.17317,
    "h": 142.1
  },
  "luminance": 0.18244
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F8917

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

Preview Lab → · Contrast checker → · Palette generator →

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