#1F7A2A#1F7A2A

#1F7A2A is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.143 H 144.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#1F7A2A
RGBrgb(31, 122, 42)
HSLhsl(127, 59%, 30%)
HSVhsv(127, 75%, 48%)
CMYKcmyk(74.6%, 0%, 65.6%, 52.2%)
CIE-LABlab(44.77, -43.34, 35.39)
CIE-LCHlch(44.77, 55.95, 140.77°)
OKLaboklab(50.95% -0.1171 0.0826)
OKLCHoklch(50.95% 0.143 144.8)
XYZxyz(7.9420, 14.3767, 4.5465)
Luminance0.1438 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A2A #7A1F6F
analogous
#417A1F #1F7A2A #1F7A58
triadic
#1F7A2A #2A1F7A #7A2A1F
tetradic
#1F7A2A #1F417A #7A1F6F #7A581F
square
#1F7A2A #1F417A #7A1F6F #7A581F
split-complementary
#1F7A2A #581F7A #7A1F41
monochromatic
#061808 #134919 #1F7A2A #2BAB3B #44CF55

Accessibility & contrast

On white

5.42
#1F7A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7A2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A2A
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A2A#FFFFFF#000000##FFFFFF
##1F7A2A1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E21
Deuteranopia (green-blind)
#726731
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a2a;
/* rgb */ color: rgb(31, 122, 42);
/* oklch */ color: oklch(51.0% 0.143 144.8);
Tailwind
colors: {
  custom: {
    50: '#6aa167',
    500: '#1f7a2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a2a;
$custom-light: #6aa167;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a2a",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 127.253,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50951,
    "c": 0.1433,
    "h": 144.8
  },
  "luminance": 0.14378
}

Semantic roles & 50–950 ramp

primary
#1F7A2A
secondary
#AD47A1
accent
#45D0E3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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