#1F7D2C#1F7D2C

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

Color values

HEX#1F7D2C
RGBrgb(31, 125, 44)
HSLhsl(128, 60%, 31%)
HSVhsv(128, 75%, 49%)
CMYKcmyk(75.2%, 0%, 64.8%, 51%)
CIE-LABlab(45.82, -44.19, 35.63)
CIE-LCHlch(45.82, 56.76, 141.12°)
OKLaboklab(51.83% -0.1193 0.0833)
OKLCHoklch(51.83% 0.146 145.1)
XYZxyz(8.3527, 15.1394, 4.8644)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2C #7D1F70
analogous
#417D1F #1F7D2C #1F7D5B
triadic
#1F7D2C #2C1F7D #7D2C1F
tetradic
#1F7D2C #1F417D #7D1F70 #7D5B1F
square
#1F7D2C #1F417D #7D1F70 #7D5B1F
split-complementary
#1F7D2C #5B1F7D #7D1F41
monochromatic
#071B09 #134C1B #1F7D2C #2BAE3D #45D159

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7D2C#FFFFFF#000000##FFFFFF
##1F7D2C1.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)
#7F7123
Deuteranopia (green-blind)
#746A33
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d2c;
/* rgb */ color: rgb(31, 125, 44);
/* oklch */ color: oklch(51.8% 0.146 145.1);
Tailwind
colors: {
  custom: {
    50: '#6aa468',
    500: '#1f7d2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2c;
$custom-light: #6aa468;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2c",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 128.298,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51833,
    "c": 0.14552,
    "h": 145.1
  },
  "luminance": 0.1514
}

Semantic roles & 50–950 ramp

primary
#1F7D2C
secondary
#B048A2
accent
#44CDE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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