#1F7D32#1F7D32

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

Color values

HEX#1F7D32
RGBrgb(31, 125, 50)
HSLhsl(132, 60%, 31%)
HSVhsv(132, 75%, 49%)
CMYKcmyk(75.2%, 0%, 60%, 51%)
CIE-LABlab(45.89, -43.40, 32.77)
CIE-LCHlch(45.89, 54.38, 142.95°)
OKLaboklab(51.91% -0.117 0.0777)
OKLCHoklch(51.91% 0.14 146.4)
XYZxyz(8.4738, 15.1879, 5.5020)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D32 #7D1F6A
analogous
#3B7D1F #1F7D32 #1F7D61
triadic
#1F7D32 #321F7D #7D321F
tetradic
#1F7D32 #1F3B7D #7D1F6A #7D611F
square
#1F7D32 #1F3B7D #7D1F6A #7D611F
split-complementary
#1F7D32 #611F7D #7D1F3B
monochromatic
#071B0B #134C1E #1F7D32 #2BAE46 #45D162

Accessibility & contrast

On white

5.20
#1F7D32 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1F7D32 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D32
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D32#FFFFFF#000000##FFFFFF
##1F7D321.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F712A
Deuteranopia (green-blind)
#746A38
Tritanopia (blue-blind)
#007A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d32;
/* rgb */ color: rgb(31, 125, 50);
/* oklch */ color: oklch(51.9% 0.140 146.4);
Tailwind
colors: {
  custom: {
    50: '#6aa46c',
    500: '#1f7d32',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d32;
$custom-light: #6aa46c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d32",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 50
  },
  "hsl": {
    "h": 132.128,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51909,
    "c": 0.14042,
    "h": 146.4
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#1F7D32
secondary
#B0489B
accent
#44C3E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7D32

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

Preview Lab → · Contrast checker → · Palette generator →

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