#1F783A#1F783A

#1F783A is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.126 H 149.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#1F783A
RGBrgb(31, 120, 58)
HSLhsl(138, 59%, 30%)
HSVhsv(138, 74%, 47%)
CMYKcmyk(74.2%, 0%, 51.7%, 52.9%)
CIE-LABlab(44.27, -40.27, 26.62)
CIE-LCHlch(44.27, 48.28, 146.53°)
OKLaboklab(50.61% -0.1084 0.0646)
OKLCHoklch(50.61% 0.126 149.2)
XYZxyz(8.0446, 14.0288, 6.2860)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F783A #781F5D
analogous
#31781F #1F783A #1F7866
triadic
#1F783A #3A1F78 #783A1F
tetradic
#1F783A #1F3178 #781F5D #78661F
square
#1F783A #1F3178 #781F5D #78661F
split-complementary
#1F783A #661F78 #781F31
monochromatic
#06180C #124722 #1F783A #2CA952 #43CE6D

Accessibility & contrast

On white

5.52
#1F783A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#1F783A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F783A
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F783A#FFFFFF#000000##FFFFFF
##1F783A1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796D35
Deuteranopia (green-blind)
#6E663E
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f783a;
/* rgb */ color: rgb(31, 120, 58);
/* oklch */ color: oklch(50.6% 0.126 149.2);
Tailwind
colors: {
  custom: {
    50: '#68a071',
    500: '#1f783a',
    950: '#000000',
  },
}
SCSS
$custom: #1f783a;
$custom-light: #68a071;
$custom-dark: #000000;
JSON
{
  "hex": "#1f783a",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 58
  },
  "hsl": {
    "h": 138.202,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50605,
    "c": 0.1262,
    "h": 149.2
  },
  "luminance": 0.1403
}

Semantic roles & 50–950 ramp

primary
#1F783A
secondary
#AB478D
accent
#46B3E2
background
#F6F9F6
surface
#EBF2EC
border
#C6CCC7
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #1F783A

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

Preview Lab → · Contrast checker → · Palette generator →

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