#1F7A1A#1F7A1A

#1F7A1A is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.8% C 0.154 H 142.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#1F7A1A
RGBrgb(31, 122, 26)
HSLhsl(117, 65%, 29%)
HSVhsv(117, 79%, 48%)
CMYKcmyk(74.6%, 0%, 78.7%, 52.2%)
CIE-LABlab(44.64, -44.92, 42.02)
CIE-LCHlch(44.64, 61.51, 136.91°)
OKLaboklab(50.8% -0.1222 0.0945)
OKLCHoklch(50.8% 0.154 142.3)
XYZxyz(7.7106, 14.2841, 3.3278)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A1A #751A7A
analogous
#4F7A1A #1F7A1A #1A7A45
triadic
#1F7A1A #1A1F7A #7A1A1F
tetradic
#1F7A1A #1A4F7A #751A7A #7A451A
square
#1F7A1A #1A4F7A #751A7A #7A451A
split-complementary
#1F7A1A #451A7A #7A1A4F
monochromatic
#061905 #12480F #1F7A1A #2CAC25 #42D539

Accessibility & contrast

On white

5.44
#1F7A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#1F7A1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A1A
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A1A#FFFFFF#000000##FFFFFF
##1F7A1A1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E05
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#017668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a1a;
/* rgb */ color: rgb(31, 122, 26);
/* oklch */ color: oklch(50.8% 0.154 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ba15e',
    500: '#1f7a1a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a1a;
$custom-light: #6ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a1a",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 116.875,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.508,
    "c": 0.15446,
    "h": 142.3
  },
  "luminance": 0.14285
}

Semantic roles & 50–950 ramp

primary
#1F7A1A
secondary
#A941AE
accent
#40E8DF
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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