#1F782B#1F782B

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

Color values

HEX#1F782B
RGBrgb(31, 120, 43)
HSLhsl(128, 59%, 30%)
HSVhsv(128, 74%, 47%)
CMYKcmyk(74.2%, 0%, 64.2%, 52.9%)
CIE-LABlab(44.09, -42.48, 34.14)
CIE-LCHlch(44.09, 54.50, 141.22°)
OKLaboklab(50.39% -0.1147 0.08)
OKLCHoklch(50.39% 0.14 145.1)
XYZxyz(7.7171, 13.8978, 4.5609)
Luminance0.1390 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F782B #781F6C
analogous
#40781F #1F782B #1F7858
triadic
#1F782B #2B1F78 #782B1F
tetradic
#1F782B #1F4078 #781F6C #78581F
square
#1F782B #1F4078 #781F6C #78581F
split-complementary
#1F782B #581F78 #781F40
monochromatic
#061809 #12471A #1F782B #2CA93C #43CE56

Accessibility & contrast

On white

5.56
#1F782B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F782B
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F782B#FFFFFF#000000##FFFFFF
##1F782B1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D22
Deuteranopia (green-blind)
#706532
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f782b;
/* rgb */ color: rgb(31, 120, 43);
/* oklch */ color: oklch(50.4% 0.140 145.1);
Tailwind
colors: {
  custom: {
    50: '#69a067',
    500: '#1f782b',
    950: '#000000',
  },
}
SCSS
$custom: #1f782b;
$custom-light: #69a067;
$custom-dark: #000000;
JSON
{
  "hex": "#1f782b",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 43
  },
  "hsl": {
    "h": 128.09,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50389,
    "c": 0.13988,
    "h": 145.1
  },
  "luminance": 0.13899
}

Semantic roles & 50–950 ramp

primary
#1F782B
secondary
#AB479E
accent
#46CDE2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F06
muted
#7A7E7A

Preview Lab

Preview with #1F782B

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

Preview Lab → · Contrast checker → · Palette generator →

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