#1F7D1A#1F7D1A

#1F7D1A is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.158 H 142.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#1F7D1A
RGBrgb(31, 125, 26)
HSLhsl(117, 66%, 30%)
HSVhsv(117, 79%, 49%)
CMYKcmyk(75.2%, 0%, 79.2%, 51%)
CIE-LABlab(45.68, -45.96, 43.04)
CIE-LCHlch(45.68, 62.97, 136.88°)
OKLaboklab(51.66% -0.125 0.0966)
OKLCHoklch(51.66% 0.158 142.3)
XYZxyz(8.0847, 15.0322, 3.4525)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D1A #781A7D
analogous
#507D1A #1F7D1A #1A7D47
triadic
#1F7D1A #1A1F7D #7D1A1F
tetradic
#1F7D1A #1A507D #781A7D #7D471A
square
#1F7D1A #1A507D #781A7D #7D471A
split-complementary
#1F7D1A #471A7D #7D1A50
monochromatic
#061905 #124A0F #1F7D1A #2CB025 #43D63B

Accessibility & contrast

On white

5.24
#1F7D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F7D1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D1A
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D1A#FFFFFF#000000##FFFFFF
##1F7D1A1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807103
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d1a;
/* rgb */ color: rgb(31, 125, 26);
/* oklch */ color: oklch(51.7% 0.158 142.3);
Tailwind
colors: {
  custom: {
    50: '#6ba45f',
    500: '#1f7d1a',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d1a;
$custom-light: #6ba45f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d1a",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 26
  },
  "hsl": {
    "h": 116.97,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51664,
    "c": 0.15799,
    "h": 142.3
  },
  "luminance": 0.15033
}

Semantic roles & 50–950 ramp

primary
#1F7D1A
secondary
#AB42B1
accent
#3FE9E0
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #1F7D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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