#1F8118#1F8118

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

Color values

HEX#1F8118
RGBrgb(31, 129, 24)
HSLhsl(116, 69%, 30%)
HSVhsv(116, 81%, 51%)
CMYKcmyk(76%, 0%, 81.4%, 49.4%)
CIE-LABlab(47.05, -47.47, 45.05)
CIE-LCHlch(47.05, 65.44, 136.50°)
OKLaboklab(52.8% -0.1292 0.1005)
OKLCHoklch(52.8% 0.164 142.1)
XYZxyz(8.5797, 16.0568, 3.5111)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8118 #7A1881
analogous
#538118 #1F8118 #188146
triadic
#1F8118 #181F81 #81181F
tetradic
#1F8118 #185381 #7A1881 #814618
square
#1F8118 #185381 #7A1881 #814618
split-complementary
#1F8118 #461881 #811853
monochromatic
#061A05 #134D0E #1F8118 #2BB522 #44DA39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8118#FFFFFF#000000##FFFFFF
##1F81181.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)
#796D25
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f8118;
/* rgb */ color: rgb(31, 129, 24);
/* oklch */ color: oklch(52.8% 0.164 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca75e',
    500: '#1f8118',
    950: '#000000',
  },
}
SCSS
$custom: #1f8118;
$custom-light: #6ca75e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8118",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 116,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.52799,
    "c": 0.16368,
    "h": 142.1
  },
  "luminance": 0.16058
}

Semantic roles & 50–950 ramp

primary
#1F8118
secondary
#AD40B5
accent
#3CEBE0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F8118

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

Preview Lab → · Contrast checker → · Palette generator →

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