#1F8D18#1F8D18

#1F8D18 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.2% C 0.177 H 142.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#1F8D18
RGBrgb(31, 141, 24)
HSLhsl(116, 71%, 32%)
HSVhsv(116, 83%, 55%)
CMYKcmyk(78%, 0%, 83%, 44.7%)
CIE-LABlab(51.16, -51.45, 48.92)
CIE-LCHlch(51.16, 71.00, 136.44°)
OKLaboklab(56.22% -0.14 0.1086)
OKLCHoklch(56.22% 0.177 142.2)
XYZxyz(10.2542, 19.4058, 4.0693)
Luminance0.1941 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D18 #86188D
analogous
#5A8D18 #1F8D18 #188D4B
triadic
#1F8D18 #181F8D #8D181F
tetradic
#1F8D18 #185A8D #86188D #8D4B18
square
#1F8D18 #185A8D #86188D #8D4B18
split-complementary
#1F8D18 #4B188D #8D185A
monochromatic
#082406 #14590F #1F8D18 #2AC121 #4ADF41

Accessibility & contrast

On white

4.30
#1F8D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#1F8D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D18
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D18#FFFFFF#000000##000000
##1F8D181.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d18;
/* rgb */ color: rgb(31, 141, 24);
/* oklch */ color: oklch(56.2% 0.177 142.2);
Tailwind
colors: {
  custom: {
    50: '#6faf60',
    500: '#1f8d18',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d18;
$custom-light: #6faf60;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d18",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 116.41,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56216,
    "c": 0.17715,
    "h": 142.2
  },
  "luminance": 0.19407
}

Semantic roles & 50–950 ramp

primary
#1F8D18
secondary
#B842BF
accent
#3AEEE3
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #1F8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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