#781C96#781C96

#781C96 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.190 H 315.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#781C96
RGBrgb(120, 28, 150)
HSLhsl(285, 69%, 35%)
HSVhsv(285, 81%, 59%)
CMYKcmyk(20%, 81.3%, 0%, 41.2%)
CIE-LABlab(31.87, 55.62, -46.86)
CIE-LCHlch(31.87, 72.73, 319.88°)
OKLaboklab(43.77% 0.1363 -0.1323)
OKLCHoklch(43.77% 0.19 315.9)
XYZxyz(13.6651, 7.0261, 29.4846)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C96 #3A961C
analogous
#3B1C96 #781C96 #961C77
triadic
#781C96 #96781C #1C9678
tetradic
#781C96 #963B1C #3A961C #1C7796
square
#781C96 #963B1C #3A961C #1C7796
split-complementary
#781C96 #77961C #1C963B
monochromatic
#25092F #4F1262 #781C96 #A126CA #BB4EDE

Accessibility & contrast

On white

8.73
#781C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#781C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C96
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C96#FFFFFF#000000##FFFFFF
##781C961.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#194D93
Tritanopia (blue-blind)
#76395A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781c96;
/* rgb */ color: rgb(120, 28, 150);
/* oklch */ color: oklch(43.8% 0.190 315.9);
Tailwind
colors: {
  custom: {
    50: '#a365b6',
    500: '#781c96',
    950: '#000000',
  },
}
SCSS
$custom: #781c96;
$custom-light: #a365b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781c96",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 285.246,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43765,
    "c": 0.18994,
    "h": 315.9
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

primary
#781C96
secondary
#6AC14D
accent
#EB3C67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781C96

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

Preview Lab → · Contrast checker → · Palette generator →

#781C96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva