#1F7D40#1F7D40

#1F7D40 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.127 H 150.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#1F7D40
RGBrgb(31, 125, 64)
HSLhsl(141, 60%, 31%)
HSVhsv(141, 75%, 49%)
CMYKcmyk(75.2%, 0%, 48.8%, 51%)
CIE-LABlab(46.08, -41.19, 25.63)
CIE-LCHlch(46.08, 48.51, 148.11°)
OKLaboklab(52.13% -0.1108 0.0627)
OKLCHoklch(52.13% 0.127 150.5)
XYZxyz(8.8234, 15.3277, 7.3430)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D40 #7D1F5C
analogous
#2D7D1F #1F7D40 #1F7D6F
triadic
#1F7D40 #401F7D #7D401F
tetradic
#1F7D40 #1F2D7D #7D1F5C #7D6F1F
square
#1F7D40 #1F2D7D #7D1F5C #7D6F1F
split-complementary
#1F7D40 #6F1F7D #7D1F2D
monochromatic
#071B0E #134C27 #1F7D40 #2BAE59 #45D176

Accessibility & contrast

On white

5.17
#1F7D40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#1F7D40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D40
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D40#FFFFFF#000000##FFFFFF
##1F7D401.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723B
Deuteranopia (green-blind)
#726A44
Tritanopia (blue-blind)
#007B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d40;
/* rgb */ color: rgb(31, 125, 64);
/* oklch */ color: oklch(52.1% 0.127 150.5);
Tailwind
colors: {
  custom: {
    50: '#6aa376',
    500: '#1f7d40',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d40;
$custom-light: #6aa376;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d40",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 141.064,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.12731,
    "h": 150.5
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#1F7D40
secondary
#B0488B
accent
#44ACE3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7D40

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

Preview Lab → · Contrast checker → · Palette generator →

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