#1F8E40#1F8E40

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

Color values

HEX#1F8E40
RGBrgb(31, 142, 64)
HSLhsl(138, 64%, 34%)
HSVhsv(138, 78%, 56%)
CMYKcmyk(78.2%, 0%, 54.9%, 44.3%)
CIE-LABlab(51.84, -47.58, 32.78)
CIE-LCHlch(51.84, 57.77, 145.43°)
OKLaboklab(56.9% -0.1279 0.0787)
OKLCHoklch(56.9% 0.15 148.4)
XYZxyz(11.1626, 20.0062, 8.1228)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E40 #8E1F6D
analogous
#368E1F #1F8E40 #1F8E78
triadic
#1F8E40 #401F8E #8E401F
tetradic
#1F8E40 #1F368E #8E1F6D #8E781F
square
#1F8E40 #1F368E #8E1F6D #8E781F
split-complementary
#1F8E40 #781F8E #8E1F36
monochromatic
#092A13 #145C29 #1F8E40 #2AC057 #4FD978

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8E40#FFFFFF#000000##000000
##1F8E401.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)
#8F8139
Deuteranopia (green-blind)
#837846
Tritanopia (blue-blind)
#008B7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8e40;
/* rgb */ color: rgb(31, 142, 64);
/* oklch */ color: oklch(56.9% 0.150 148.4);
Tailwind
colors: {
  custom: {
    50: '#6eb077',
    500: '#1f8e40',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e40;
$custom-light: #6eb077;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e40",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 64
  },
  "hsl": {
    "h": 137.838,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56897,
    "c": 0.15018,
    "h": 148.4
  },
  "luminance": 0.20007
}

Semantic roles & 50–950 ramp

primary
#1F8E40
secondary
#BB4D9B
accent
#41B6E7
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081109
muted
#7B807B

Preview Lab

Preview with #1F8E40

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

Preview Lab → · Contrast checker → · Palette generator →

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