#1F7D3F#1F7D3F

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

Color values

HEX#1F7D3F
RGBrgb(31, 125, 63)
HSLhsl(140, 60%, 31%)
HSVhsv(140, 75%, 49%)
CMYKcmyk(75.2%, 0%, 49.6%, 51%)
CIE-LABlab(46.06, -41.36, 26.15)
CIE-LCHlch(46.06, 48.94, 147.70°)
OKLaboklab(52.11% -0.1113 0.0638)
OKLCHoklch(52.11% 0.128 150.2)
XYZxyz(8.7952, 15.3164, 7.1945)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D3F #7D1F5D
analogous
#2E7D1F #1F7D3F #1F7D6E
triadic
#1F7D3F #3F1F7D #7D3F1F
tetradic
#1F7D3F #1F2E7D #7D1F5D #7D6E1F
square
#1F7D3F #1F2E7D #7D1F5D #7D6E1F
split-complementary
#1F7D3F #6E1F7D #7D1F2E
monochromatic
#071B0E #134C26 #1F7D3F #2BAE58 #45D175

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #1f7d3f;
/* rgb */ color: rgb(31, 125, 63);
/* oklch */ color: oklch(52.1% 0.128 150.2);
Tailwind
colors: {
  custom: {
    50: '#6aa375',
    500: '#1f7d3f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d3f;
$custom-light: #6aa375;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d3f",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 63
  },
  "hsl": {
    "h": 140.426,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52109,
    "c": 0.12828,
    "h": 150.2
  },
  "luminance": 0.15317
}

Semantic roles & 50–950 ramp

primary
#1F7D3F
secondary
#B0488D
accent
#44ADE3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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