#1F8C4E#1F8C4E

#1F8C4E is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.134 H 152.9°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#1F8C4E
RGBrgb(31, 140, 78)
HSLhsl(146, 64%, 34%)
HSVhsv(146, 78%, 55%)
CMYKcmyk(77.9%, 0%, 44.3%, 45.1%)
CIE-LABlab(51.38, -44.44, 24.77)
CIE-LCHlch(51.38, 50.87, 150.87°)
OKLaboklab(56.58% -0.1196 0.0612)
OKLCHoklch(56.58% 0.134 152.9)
XYZxyz(11.3173, 19.5962, 10.3922)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8C4E #8C1F5D
analogous
#268C1F #1F8C4E #1F8C84
triadic
#1F8C4E #4E1F8C #8C4E1F
tetradic
#1F8C4E #1F268C #8C1F5D #8C841F
square
#1F8C4E #1F268C #8C1F5D #8C841F
split-complementary
#1F8C4E #841F8C #8C1F26
monochromatic
#092816 #145A32 #1F8C4E #2ABE6A #4ED889

Accessibility & contrast

On white

4.27
#1F8C4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#1F8C4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8C4E
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8C4E#FFFFFF#000000##000000
##1F8C4E1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C8049
Deuteranopia (green-blind)
#7F7752
Tritanopia (blue-blind)
#008A7D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8c4e;
/* rgb */ color: rgb(31, 140, 78);
/* oklch */ color: oklch(56.6% 0.134 152.9);
Tailwind
colors: {
  custom: {
    50: '#6daf80',
    500: '#1f8c4e',
    950: '#000000',
  },
}
SCSS
$custom: #1f8c4e;
$custom-light: #6daf80;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8c4e",
  "rgb": {
    "r": 31,
    "g": 140,
    "b": 78
  },
  "hsl": {
    "h": 145.872,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56577,
    "c": 0.13431,
    "h": 152.9
  },
  "luminance": 0.19598
}

Semantic roles & 50–950 ramp

primary
#1F8C4E
secondary
#BB4C8B
accent
#419FE7
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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