#1F8117#1F8117

#1F8117 is a mid, vivid green. Relative luminance 0.161; OKLCH L 52.8% C 0.164 H 142.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#1F8117
RGBrgb(31, 129, 23)
HSLhsl(115, 70%, 30%)
HSVhsv(115, 82%, 51%)
CMYKcmyk(76%, 0%, 82.2%, 49.4%)
CIE-LABlab(47.04, -47.54, 45.36)
CIE-LCHlch(47.04, 65.71, 136.34°)
OKLaboklab(52.79% -0.1294 0.101)
OKLCHoklch(52.79% 0.164 142)
XYZxyz(8.5695, 16.0527, 3.4573)
Luminance0.1605 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8117 #791781
analogous
#548117 #1F8117 #178144
triadic
#1F8117 #171F81 #81171F
tetradic
#1F8117 #175481 #791781 #814417
square
#1F8117 #175481 #791781 #814417
split-complementary
#1F8117 #441781 #811754
monochromatic
#061A05 #134D0E #1F8117 #2BB520 #43DB37

Accessibility & contrast

On white

4.99
#1F8117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#1F8117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8117
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8117#FFFFFF#000000##FFFFFF
##1F81171.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#796D24
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f8117;
/* rgb */ color: rgb(31, 129, 23);
/* oklch */ color: oklch(52.8% 0.164 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ca75e',
    500: '#1f8117',
    950: '#000000',
  },
}
SCSS
$custom: #1f8117;
$custom-light: #6ca75e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8117",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 115.472,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52793,
    "c": 0.16417,
    "h": 142
  },
  "luminance": 0.16054
}

Semantic roles & 50–950 ramp

primary
#1F8117
secondary
#AC3EB5
accent
#3BEDDF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F8117

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

Preview Lab → · Contrast checker → · Palette generator →

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