#1F8E18#1F8E18

#1F8E18 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.5% C 0.178 H 142.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F8E18
RGBrgb(31, 142, 24)
HSLhsl(116, 71%, 33%)
HSVhsv(116, 83%, 56%)
CMYKcmyk(78.2%, 0%, 83.1%, 44.3%)
CIE-LABlab(51.50, -51.78, 49.24)
CIE-LCHlch(51.50, 71.45, 136.44°)
OKLaboklab(56.5% -0.1408 0.1092)
OKLCHoklch(56.5% 0.178 142.2)
XYZxyz(10.4023, 19.7020, 4.1186)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E18 #87188E
analogous
#5A8E18 #1F8E18 #188E4C
triadic
#1F8E18 #181F8E #8E181F
tetradic
#1F8E18 #185A8E #87188E #8E4C18
square
#1F8E18 #185A8E #87188E #8E4C18
split-complementary
#1F8E18 #4C188E #8E185A
monochromatic
#082506 #145A0F #1F8E18 #2AC221 #4BDF41

Accessibility & contrast

On white

4.25
#1F8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#1F8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E18
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E18#FFFFFF#000000##000000
##1F8E181.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#857827
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e18;
/* rgb */ color: rgb(31, 142, 24);
/* oklch */ color: oklch(56.5% 0.178 142.2);
Tailwind
colors: {
  custom: {
    50: '#70b060',
    500: '#1f8e18',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e18;
$custom-light: #70b060;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e18",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 116.441,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56499,
    "c": 0.17825,
    "h": 142.2
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#1F8E18
secondary
#B842C0
accent
#3AEEE3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #1F8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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