#1F7D2E#1F7D2E

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

Color values

HEX#1F7D2E
RGBrgb(31, 125, 46)
HSLhsl(130, 60%, 31%)
HSVhsv(130, 75%, 49%)
CMYKcmyk(75.2%, 0%, 63.2%, 51%)
CIE-LABlab(45.85, -43.94, 34.69)
CIE-LCHlch(45.85, 55.98, 141.71°)
OKLaboklab(51.86% -0.1186 0.0815)
OKLCHoklch(51.86% 0.144 145.5)
XYZxyz(8.3912, 15.1548, 5.0672)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2E #7D1F6E
analogous
#3F7D1F #1F7D2E #1F7D5D
triadic
#1F7D2E #2E1F7D #7D2E1F
tetradic
#1F7D2E #1F3F7D #7D1F6E #7D5D1F
square
#1F7D2E #1F3F7D #7D1F6E #7D5D1F
split-complementary
#1F7D2E #5D1F7D #7D1F3F
monochromatic
#071B0A #134C1C #1F7D2E #2BAE40 #45D15C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D2E#FFFFFF#000000##FFFFFF
##1F7D2E1.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)
#7F7125
Deuteranopia (green-blind)
#746A35
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d2e;
/* rgb */ color: rgb(31, 125, 46);
/* oklch */ color: oklch(51.9% 0.144 145.5);
Tailwind
colors: {
  custom: {
    50: '#6aa46a',
    500: '#1f7d2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2e;
$custom-light: #6aa46a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2e",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 129.574,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51857,
    "c": 0.14387,
    "h": 145.5
  },
  "luminance": 0.15156
}

Semantic roles & 50–950 ramp

primary
#1F7D2E
secondary
#B0489F
accent
#44CAE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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