#1F782E#1F782E

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

Color values

HEX#1F782E
RGBrgb(31, 120, 46)
HSLhsl(130, 59%, 30%)
HSVhsv(130, 74%, 47%)
CMYKcmyk(74.2%, 0%, 61.7%, 52.9%)
CIE-LABlab(44.12, -42.09, 32.70)
CIE-LCHlch(44.12, 53.30, 142.16°)
OKLaboklab(50.43% -0.1136 0.0772)
OKLCHoklch(50.43% 0.137 145.8)
XYZxyz(7.7741, 13.9206, 4.8615)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F782E #781F69
analogous
#3D781F #1F782E #1F785A
triadic
#1F782E #2E1F78 #782E1F
tetradic
#1F782E #1F3D78 #781F69 #785A1F
square
#1F782E #1F3D78 #781F69 #785A1F
split-complementary
#1F782E #5A1F78 #781F3D
monochromatic
#061809 #12471B #1F782E #2CA941 #43CE5A

Accessibility & contrast

On white

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

On black

3.78
#1F782E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F782E#FFFFFF#000000##FFFFFF
##1F782E1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f782e;
/* rgb */ color: rgb(31, 120, 46);
/* oklch */ color: oklch(50.4% 0.137 145.8);
Tailwind
colors: {
  custom: {
    50: '#69a069',
    500: '#1f782e',
    950: '#000000',
  },
}
SCSS
$custom: #1f782e;
$custom-light: #69a069;
$custom-dark: #000000;
JSON
{
  "hex": "#1f782e",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 46
  },
  "hsl": {
    "h": 130.112,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50426,
    "c": 0.13733,
    "h": 145.8
  },
  "luminance": 0.13922
}

Semantic roles & 50–950 ramp

primary
#1F782E
secondary
#AB479B
accent
#46C8E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1F782E

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

Preview Lab → · Contrast checker → · Palette generator →

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