#1F782F#1F782F

#1F782F is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.4% C 0.136 H 146.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#1F782F
RGBrgb(31, 120, 47)
HSLhsl(131, 59%, 30%)
HSVhsv(131, 74%, 47%)
CMYKcmyk(74.2%, 0%, 60.8%, 52.9%)
CIE-LABlab(44.13, -41.96, 32.21)
CIE-LCHlch(44.13, 52.90, 142.48°)
OKLaboklab(50.44% -0.1132 0.0762)
OKLCHoklch(50.44% 0.136 146)
XYZxyz(7.7941, 13.9286, 4.9665)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F782F #781F68
analogous
#3B781F #1F782F #1F785C
triadic
#1F782F #2F1F78 #782F1F
tetradic
#1F782F #1F3B78 #781F68 #785C1F
square
#1F782F #1F3B78 #781F68 #785C1F
split-complementary
#1F782F #5C1F78 #781F3B
monochromatic
#06180A #12471C #1F782F #2CA942 #43CE5C

Accessibility & contrast

On white

5.55
#1F782F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#1F782F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F782F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F782F#FFFFFF#000000##FFFFFF
##1F782F1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D28
Deuteranopia (green-blind)
#6F6535
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f782f;
/* rgb */ color: rgb(31, 120, 47);
/* oklch */ color: oklch(50.4% 0.136 146.0);
Tailwind
colors: {
  custom: {
    50: '#69a06a',
    500: '#1f782f',
    950: '#000000',
  },
}
SCSS
$custom: #1f782f;
$custom-light: #69a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f782f",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 47
  },
  "hsl": {
    "h": 130.787,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.13645,
    "h": 146
  },
  "luminance": 0.13929
}

Semantic roles & 50–950 ramp

primary
#1F782F
secondary
#AB4799
accent
#46C6E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1F782F

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

Preview Lab → · Contrast checker → · Palette generator →

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