#1F7D2A#1F7D2A

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

Color values

HEX#1F7D2A
RGBrgb(31, 125, 42)
HSLhsl(127, 60%, 31%)
HSVhsv(127, 75%, 49%)
CMYKcmyk(75.2%, 0%, 66.4%, 51%)
CIE-LABlab(45.80, -44.43, 36.55)
CIE-LCHlch(45.80, 57.53, 140.56°)
OKLaboklab(51.81% -0.1201 0.085)
OKLCHoklch(51.81% 0.147 144.7)
XYZxyz(8.3161, 15.1248, 4.6711)
Luminance0.1513 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D2A #7D1F72
analogous
#437D1F #1F7D2A #1F7D59
triadic
#1F7D2A #2A1F7D #7D2A1F
tetradic
#1F7D2A #1F437D #7D1F72 #7D591F
square
#1F7D2A #1F437D #7D1F72 #7D591F
split-complementary
#1F7D2A #591F7D #7D1F43
monochromatic
#071B09 #134C1A #1F7D2A #2BAE3A #45D156

Accessibility & contrast

On white

5.22
#1F7D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7D2A
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D2A#FFFFFF#000000##FFFFFF
##1F7D2A1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#746A31
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d2a;
/* rgb */ color: rgb(31, 125, 42);
/* oklch */ color: oklch(51.8% 0.147 144.7);
Tailwind
colors: {
  custom: {
    50: '#6aa467',
    500: '#1f7d2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d2a;
$custom-light: #6aa467;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d2a",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 127.021,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.14713,
    "h": 144.7
  },
  "luminance": 0.15126
}

Semantic roles & 50–950 ramp

primary
#1F7D2A
secondary
#B048A4
accent
#44D1E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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