#1F783B#1F783B

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

Color values

HEX#1F783B
RGBrgb(31, 120, 59)
HSLhsl(139, 59%, 30%)
HSVhsv(139, 74%, 47%)
CMYKcmyk(74.2%, 0%, 50.8%, 52.9%)
CIE-LABlab(44.29, -40.10, 26.10)
CIE-LCHlch(44.29, 47.85, 146.95°)
OKLaboklab(50.62% -0.1079 0.0635)
OKLCHoklch(50.62% 0.125 149.5)
XYZxyz(8.0703, 14.0391, 6.4213)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F783B #781F5C
analogous
#30781F #1F783B #1F7867
triadic
#1F783B #3B1F78 #783B1F
tetradic
#1F783B #1F3078 #781F5C #78671F
square
#1F783B #1F3078 #781F5C #78671F
split-complementary
#1F783B #671F78 #781F30
monochromatic
#06180C #124723 #1F783B #2CA953 #43CE6F

Accessibility & contrast

On white

5.51
#1F783B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F783B
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F783B#FFFFFF#000000##FFFFFF
##1F783B1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f783b;
/* rgb */ color: rgb(31, 120, 59);
/* oklch */ color: oklch(50.6% 0.125 149.5);
Tailwind
colors: {
  custom: {
    50: '#68a072',
    500: '#1f783b',
    950: '#000000',
  },
}
SCSS
$custom: #1f783b;
$custom-light: #68a072;
$custom-dark: #000000;
JSON
{
  "hex": "#1f783b",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 59
  },
  "hsl": {
    "h": 138.876,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50622,
    "c": 0.12522,
    "h": 149.5
  },
  "luminance": 0.1404
}

Semantic roles & 50–950 ramp

primary
#1F783B
secondary
#AB478C
accent
#46B1E2
background
#F6F9F6
surface
#EBF2EC
border
#C6CCC7
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #1F783B

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

Preview Lab → · Contrast checker → · Palette generator →

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