#1F7D2F#1F7D2F

#1F7D2F is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.143 H 145.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#1F7D2F
RGBrgb(31, 125, 47)
HSLhsl(130, 60%, 31%)
HSVhsv(130, 75%, 49%)
CMYKcmyk(75.2%, 0%, 62.4%, 51%)
CIE-LABlab(45.86, -43.81, 34.22)
CIE-LCHlch(45.86, 55.59, 142.01°)
OKLaboklab(51.87% -0.1182 0.0806)
OKLCHoklch(51.87% 0.143 145.7)
XYZxyz(8.4112, 15.1628, 5.1722)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2F #7D1F6D
analogous
#3E7D1F #1F7D2F #1F7D5E
triadic
#1F7D2F #2F1F7D #7D2F1F
tetradic
#1F7D2F #1F3E7D #7D1F6D #7D5E1F
square
#1F7D2F #1F3E7D #7D1F6D #7D5E1F
split-complementary
#1F7D2F #5E1F7D #7D1F3E
monochromatic
#071B0A #134C1D #1F7D2F #2BAE41 #45D15D

Accessibility & contrast

On white

5.21
#1F7D2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#1F7D2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D2F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D2F#FFFFFF#000000##FFFFFF
##1F7D2F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7127
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d2f;
/* rgb */ color: rgb(31, 125, 47);
/* oklch */ color: oklch(51.9% 0.143 145.7);
Tailwind
colors: {
  custom: {
    50: '#6aa46a',
    500: '#1f7d2f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2f;
$custom-light: #6aa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2f",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 130.213,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51869,
    "c": 0.14303,
    "h": 145.7
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#1F7D2F
secondary
#B0489E
accent
#44C8E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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