#1F7D3D#1F7D3D

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

Color values

HEX#1F7D3D
RGBrgb(31, 125, 61)
HSLhsl(139, 60%, 31%)
HSVhsv(139, 75%, 49%)
CMYKcmyk(75.2%, 0%, 51.2%, 51%)
CIE-LABlab(46.03, -41.71, 27.20)
CIE-LCHlch(46.03, 49.79, 146.89°)
OKLaboklab(52.08% -0.1122 0.0661)
OKLCHoklch(52.08% 0.13 149.5)
XYZxyz(8.7403, 15.2945, 6.9055)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D3D #7D1F5F
analogous
#307D1F #1F7D3D #1F7D6C
triadic
#1F7D3D #3D1F7D #7D3D1F
tetradic
#1F7D3D #1F307D #7D1F5F #7D6C1F
square
#1F7D3D #1F307D #7D1F5F #7D6C1F
split-complementary
#1F7D3D #6C1F7D #7D1F30
monochromatic
#071B0D #134C25 #1F7D3D #2BAE55 #45D172

Accessibility & contrast

On white

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

On black

4.06
#1F7D3D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F7D3D#FFFFFF#000000##FFFFFF
##1F7D3D1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7238
Deuteranopia (green-blind)
#736A42
Tritanopia (blue-blind)
#007B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d3d;
/* rgb */ color: rgb(31, 125, 61);
/* oklch */ color: oklch(52.1% 0.130 149.5);
Tailwind
colors: {
  custom: {
    50: '#6aa474',
    500: '#1f7d3d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d3d;
$custom-light: #6aa474;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d3d",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 61
  },
  "hsl": {
    "h": 139.149,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.13023,
    "h": 149.5
  },
  "luminance": 0.15295
}

Semantic roles & 50–950 ramp

primary
#1F7D3D
secondary
#B0488F
accent
#44B1E3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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