#1F7A3E#1F7A3E

#1F7A3E is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.125 H 150.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#1F7A3E
RGBrgb(31, 122, 62)
HSLhsl(140, 59%, 30%)
HSVhsv(140, 75%, 48%)
CMYKcmyk(74.6%, 0%, 49.2%, 52.2%)
CIE-LABlab(45.02, -40.37, 25.38)
CIE-LCHlch(45.02, 47.68, 147.84°)
OKLaboklab(51.24% -0.1086 0.062)
OKLCHoklch(51.24% 0.125 150.3)
XYZxyz(8.3934, 14.5572, 6.9240)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A3E #7A1F5B
analogous
#2D7A1F #1F7A3E #1F7A6C
triadic
#1F7A3E #3E1F7A #7A3E1F
tetradic
#1F7A3E #1F2D7A #7A1F5B #7A6C1F
square
#1F7A3E #1F2D7A #7A1F5B #7A6C1F
split-complementary
#1F7A3E #6C1F7A #7A1F2D
monochromatic
#06180C #134925 #1F7A3E #2BAB57 #44CF73

Accessibility & contrast

On white

5.37
#1F7A3E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7A3E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A3E
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A3E#FFFFFF#000000##FFFFFF
##1F7A3E1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F39
Deuteranopia (green-blind)
#706742
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7a3e;
/* rgb */ color: rgb(31, 122, 62);
/* oklch */ color: oklch(51.2% 0.125 150.3);
Tailwind
colors: {
  custom: {
    50: '#69a174',
    500: '#1f7a3e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a3e;
$custom-light: #69a174;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a3e",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 62
  },
  "hsl": {
    "h": 140.44,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51243,
    "c": 0.12508,
    "h": 150.3
  },
  "luminance": 0.14558
}

Semantic roles & 50–950 ramp

primary
#1F7A3E
secondary
#AD478B
accent
#45ADE3
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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