#1F7A1F#1F7A1F

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

Color values

HEX#1F7A1F
RGBrgb(31, 122, 31)
HSLhsl(120, 59%, 30%)
HSVhsv(120, 75%, 48%)
CMYKcmyk(74.6%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.67, -44.50, 40.13)
CIE-LCHlch(44.67, 59.92, 137.96°)
OKLaboklab(50.84% -0.1208 0.0912)
OKLCHoklch(50.84% 0.151 142.9)
XYZxyz(7.7715, 14.3084, 3.6483)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A1F #7A1F7A
analogous
#4D7A1F #1F7A1F #1F7A4D
triadic
#1F7A1F #1F1F7A #7A1F1F
tetradic
#1F7A1F #1F4C7A #7A1F7A #7A4D1F
square
#1F7A1F #1F4C7A #7A1F7A #7A4D1F
split-complementary
#1F7A1F #4C1F7A #7A1F4D
monochromatic
#061806 #134913 #1F7A1F #2BAB2B #44CF44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7A1F#FFFFFF#000000##FFFFFF
##1F7A1F1.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)
#7D6E10
Deuteranopia (green-blind)
#726728
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a1f;
/* rgb */ color: rgb(31, 122, 31);
/* oklch */ color: oklch(50.8% 0.151 142.9);
Tailwind
colors: {
  custom: {
    50: '#6aa161',
    500: '#1f7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a1f;
$custom-light: #6aa161;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a1f",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.5084,
    "c": 0.15139,
    "h": 142.9
  },
  "luminance": 0.14309
}

Semantic roles & 50–950 ramp

primary
#1F7A1F
secondary
#AD47AD
accent
#45E3E3
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #1F7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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