#1F781D#1F781D

#1F781D is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.2% C 0.150 H 142.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#1F781D
RGBrgb(31, 120, 29)
HSLhsl(119, 61%, 29%)
HSVhsv(119, 76%, 47%)
CMYKcmyk(74.2%, 0%, 75.8%, 52.9%)
CIE-LABlab(43.96, -43.97, 40.20)
CIE-LCHlch(43.96, 59.58, 137.56°)
OKLaboklab(50.25% -0.1195 0.0911)
OKLCHoklch(50.25% 0.15 142.7)
XYZxyz(7.5029, 13.8121, 3.4328)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F781D #761D78
analogous
#4D781D #1F781D #1D7849
triadic
#1F781D #1D1F78 #781D1F
tetradic
#1F781D #1D4D78 #761D78 #78491D
square
#1F781D #1D4D78 #761D78 #78491D
split-complementary
#1F781D #491D78 #781D4D
monochromatic
#061906 #124711 #1F781D #2CA929 #42D13F

Accessibility & contrast

On white

5.58
#1F781D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#1F781D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F781D
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F781D#FFFFFF#000000##FFFFFF
##1F781D1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C0C
Deuteranopia (green-blind)
#716526
Tritanopia (blue-blind)
#027466
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f781d;
/* rgb */ color: rgb(31, 120, 29);
/* oklch */ color: oklch(50.2% 0.150 142.7);
Tailwind
colors: {
  custom: {
    50: '#6aa05f',
    500: '#1f781d',
    950: '#000000',
  },
}
SCSS
$custom: #1f781d;
$custom-light: #6aa05f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f781d",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 118.681,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50246,
    "c": 0.15025,
    "h": 142.7
  },
  "luminance": 0.13813
}

Semantic roles & 50–950 ramp

primary
#1F781D
secondary
#AA45AC
accent
#44E4E1
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070F05
muted
#7A7E79

Preview Lab

Preview with #1F781D

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

Preview Lab → · Contrast checker → · Palette generator →

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