#1F7A40#1F7A40

#1F7A40 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.123 H 151.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#1F7A40
RGBrgb(31, 122, 64)
HSLhsl(142, 59%, 30%)
HSVhsv(142, 75%, 48%)
CMYKcmyk(74.6%, 0%, 47.5%, 52.2%)
CIE-LABlab(45.05, -40.01, 24.32)
CIE-LCHlch(45.05, 46.82, 148.71°)
OKLaboklab(51.28% -0.1077 0.0597)
OKLCHoklch(51.28% 0.123 151)
XYZxyz(8.4493, 14.5796, 7.2183)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A40 #7A1F59
analogous
#2C7A1F #1F7A40 #1F7A6D
triadic
#1F7A40 #401F7A #7A401F
tetradic
#1F7A40 #1F2C7A #7A1F59 #7A6D1F
square
#1F7A40 #1F2C7A #7A1F59 #7A6D1F
split-complementary
#1F7A40 #6D1F7A #7A1F2C
monochromatic
#06180D #134926 #1F7A40 #2BAB5A #44CF77

Accessibility & contrast

On white

5.36
#1F7A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#1F7A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A40
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A40#FFFFFF#000000##FFFFFF
##1F7A401.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7a40;
/* rgb */ color: rgb(31, 122, 64);
/* oklch */ color: oklch(51.3% 0.123 151.0);
Tailwind
colors: {
  custom: {
    50: '#69a176',
    500: '#1f7a40',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a40;
$custom-light: #69a176;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a40",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 141.758,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.12312,
    "h": 151
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#1F7A40
secondary
#AD4788
accent
#45AAE3
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7A40

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

Preview Lab → · Contrast checker → · Palette generator →

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