#1F7E40#1F7E40

#1F7E40 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.129 H 150.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#1F7E40
RGBrgb(31, 126, 64)
HSLhsl(141, 61%, 31%)
HSVhsv(141, 75%, 49%)
CMYKcmyk(75.4%, 0%, 49.2%, 50.6%)
CIE-LABlab(46.42, -41.58, 26.06)
CIE-LCHlch(46.42, 49.07, 147.92°)
OKLaboklab(52.41% -0.1118 0.0637)
OKLCHoklch(52.41% 0.129 150.4)
XYZxyz(8.9506, 15.5822, 7.3854)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E40 #7E1F5D
analogous
#2D7E1F #1F7E40 #1F7E6F
triadic
#1F7E40 #401F7E #7E401F
tetradic
#1F7E40 #1F2D7E #7E1F5D #7E6F1F
square
#1F7E40 #1F2D7E #7E1F5D #7E6F1F
split-complementary
#1F7E40 #6F1F7E #7E1F2D
monochromatic
#071C0E #134D27 #1F7E40 #2BAF59 #46D176

Accessibility & contrast

On white

5.10
#1F7E40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#1F7E40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E40
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E40#FFFFFF#000000##FFFFFF
##1F7E401.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F733B
Deuteranopia (green-blind)
#736B44
Tritanopia (blue-blind)
#007C6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7e40;
/* rgb */ color: rgb(31, 126, 64);
/* oklch */ color: oklch(52.4% 0.129 150.4);
Tailwind
colors: {
  custom: {
    50: '#6aa476',
    500: '#1f7e40',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e40;
$custom-light: #6aa476;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e40",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 140.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52409,
    "c": 0.12869,
    "h": 150.4
  },
  "luminance": 0.15583
}

Semantic roles & 50–950 ramp

primary
#1F7E40
secondary
#B1488C
accent
#44ACE4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7E40

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

Preview Lab → · Contrast checker → · Palette generator →

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