#1F7D2D#1F7D2D

#1F7D2D is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.8% C 0.145 H 145.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#1F7D2D
RGBrgb(31, 125, 45)
HSLhsl(129, 60%, 31%)
HSVhsv(129, 75%, 49%)
CMYKcmyk(75.2%, 0%, 64%, 51%)
CIE-LABlab(45.84, -44.06, 35.16)
CIE-LCHlch(45.84, 56.37, 141.41°)
OKLaboklab(51.85% -0.119 0.0824)
OKLCHoklch(51.85% 0.145 145.3)
XYZxyz(8.3718, 15.1471, 4.9646)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2D #7D1F6F
analogous
#407D1F #1F7D2D #1F7D5C
triadic
#1F7D2D #2D1F7D #7D2D1F
tetradic
#1F7D2D #1F407D #7D1F6F #7D5C1F
square
#1F7D2D #1F407D #7D1F6F #7D5C1F
split-complementary
#1F7D2D #5C1F7D #7D1F40
monochromatic
#071B0A #134C1B #1F7D2D #2BAE3F #45D15A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D2D#FFFFFF#000000##FFFFFF
##1F7D2D1.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)
#7F7124
Deuteranopia (green-blind)
#746A34
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d2d;
/* rgb */ color: rgb(31, 125, 45);
/* oklch */ color: oklch(51.8% 0.145 145.3);
Tailwind
colors: {
  custom: {
    50: '#6aa469',
    500: '#1f7d2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2d;
$custom-light: #6aa469;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2d",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 128.936,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51845,
    "c": 0.14471,
    "h": 145.3
  },
  "luminance": 0.15148
}

Semantic roles & 50–950 ramp

primary
#1F7D2D
secondary
#B048A1
accent
#44CCE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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