#1F8F18#1F8F18

#1F8F18 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.179 H 142.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#1F8F18
RGBrgb(31, 143, 24)
HSLhsl(116, 71%, 33%)
HSVhsv(116, 83%, 56%)
CMYKcmyk(78.3%, 0%, 83.2%, 43.9%)
CIE-LABlab(51.84, -52.10, 49.56)
CIE-LCHlch(51.84, 71.90, 136.43°)
OKLaboklab(56.78% -0.1417 0.1099)
OKLCHoklch(56.78% 0.179 142.2)
XYZxyz(10.5518, 20.0009, 4.1684)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F18 #88188F
analogous
#5A8F18 #1F8F18 #188F4D
triadic
#1F8F18 #181F8F #8F181F
tetradic
#1F8F18 #185A8F #88188F #8F4D18
square
#1F8F18 #185A8F #88188F #8F4D18
split-complementary
#1F8F18 #4D188F #8F185A
monochromatic
#082606 #145B0F #1F8F18 #2AC321 #4BDF42

Accessibility & contrast

On white

4.20
#1F8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#1F8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F18
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F18#FFFFFF#000000##000000
##1F8F181.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f18;
/* rgb */ color: rgb(31, 143, 24);
/* oklch */ color: oklch(56.8% 0.179 142.2);
Tailwind
colors: {
  custom: {
    50: '#70b160',
    500: '#1f8f18',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f18;
$custom-light: #70b160;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f18",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 116.471,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56781,
    "c": 0.17935,
    "h": 142.2
  },
  "luminance": 0.20002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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