#1F7F40#1F7F40

#1F7F40 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.7% C 0.130 H 150.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F7F40
RGBrgb(31, 127, 64)
HSLhsl(141, 61%, 31%)
HSVhsv(141, 76%, 50%)
CMYKcmyk(75.6%, 0%, 49.6%, 50.2%)
CIE-LABlab(46.76, -41.97, 26.49)
CIE-LCHlch(46.76, 49.63, 147.74°)
OKLaboklab(52.69% -0.1129 0.0646)
OKLCHoklch(52.69% 0.13 150.2)
XYZxyz(9.0791, 15.8392, 7.4283)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F40 #7F1F5E
analogous
#2E7F1F #1F7F40 #1F7F70
triadic
#1F7F40 #401F7F #7F401F
tetradic
#1F7F40 #1F2E7F #7F1F5E #7F701F
square
#1F7F40 #1F2E7F #7F1F5E #7F701F
split-complementary
#1F7F40 #701F7F #7F1F2E
monochromatic
#071D0E #134E27 #1F7F40 #2BB059 #46D276

Accessibility & contrast

On white

5.04
#1F7F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#1F7F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F40
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F40#FFFFFF#000000##FFFFFF
##1F7F401.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#746C44
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f7f40;
/* rgb */ color: rgb(31, 127, 64);
/* oklch */ color: oklch(52.7% 0.130 150.2);
Tailwind
colors: {
  custom: {
    50: '#6aa576',
    500: '#1f7f40',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f40;
$custom-light: #6aa576;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f40",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 140.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52691,
    "c": 0.13007,
    "h": 150.2
  },
  "luminance": 0.1584
}

Semantic roles & 50–950 ramp

primary
#1F7F40
secondary
#B2488D
accent
#44ADE4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7F40

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

Preview Lab → · Contrast checker → · Palette generator →

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