#1F7D3E#1F7D3E

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

Color values

HEX#1F7D3E
RGBrgb(31, 125, 62)
HSLhsl(140, 60%, 31%)
HSVhsv(140, 75%, 49%)
CMYKcmyk(75.2%, 0%, 50.4%, 51%)
CIE-LABlab(46.05, -41.54, 26.68)
CIE-LCHlch(46.05, 49.37, 147.29°)
OKLaboklab(52.09% -0.1117 0.065)
OKLCHoklch(52.09% 0.129 149.8)
XYZxyz(8.7675, 15.3053, 7.0487)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D3E #7D1F5E
analogous
#2F7D1F #1F7D3E #1F7D6D
triadic
#1F7D3E #3E1F7D #7D3E1F
tetradic
#1F7D3E #1F2F7D #7D1F5E #7D6D1F
square
#1F7D3E #1F2F7D #7D1F5E #7D6D1F
split-complementary
#1F7D3E #6D1F7D #7D1F2F
monochromatic
#071B0D #134C26 #1F7D3E #2BAE56 #45D173

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D3E#FFFFFF#000000##FFFFFF
##1F7D3E1.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)
#7E7239
Deuteranopia (green-blind)
#736A43
Tritanopia (blue-blind)
#007B6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d3e;
/* rgb */ color: rgb(31, 125, 62);
/* oklch */ color: oklch(52.1% 0.129 149.8);
Tailwind
colors: {
  custom: {
    50: '#6aa474',
    500: '#1f7d3e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d3e;
$custom-light: #6aa474;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d3e",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 62
  },
  "hsl": {
    "h": 139.787,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52092,
    "c": 0.12926,
    "h": 149.8
  },
  "luminance": 0.15306
}

Semantic roles & 50–950 ramp

primary
#1F7D3E
secondary
#B0488E
accent
#44AFE3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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