#781E96#781E96

#781E96 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.188 H 315.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#781E96
RGBrgb(120, 30, 150)
HSLhsl(285, 67%, 35%)
HSVhsv(285, 80%, 59%)
CMYKcmyk(20%, 80%, 0%, 41.2%)
CIE-LABlab(32.09, 54.97, -46.51)
CIE-LCHlch(32.09, 72.01, 319.77°)
OKLaboklab(43.92% 0.1347 -0.1312)
OKLCHoklch(43.92% 0.188 315.7)
XYZxyz(13.7141, 7.1242, 29.5009)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E96 #3C961E
analogous
#3C1E96 #781E96 #961E78
triadic
#781E96 #96781E #1E9678
tetradic
#781E96 #963C1E #3C961E #1E7896
square
#781E96 #963C1E #3C961E #1E7896
split-complementary
#781E96 #78961E #1E963C
monochromatic
#260A30 #4F1463 #781E96 #A128C9 #BA52DC

Accessibility & contrast

On white

8.66
#781E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#781E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E96
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E96#FFFFFF#000000##FFFFFF
##781E961.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1A4E93
Tritanopia (blue-blind)
#763A5A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781e96;
/* rgb */ color: rgb(120, 30, 150);
/* oklch */ color: oklch(43.9% 0.188 315.7);
Tailwind
colors: {
  custom: {
    50: '#a365b6',
    500: '#781e96',
    950: '#000000',
  },
}
SCSS
$custom: #781e96;
$custom-light: #a365b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781e96",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 285,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.18805,
    "h": 315.7
  },
  "luminance": 0.07124
}

Semantic roles & 50–950 ramp

primary
#781E96
secondary
#6CBF50
accent
#EA3E69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781E96

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

Preview Lab → · Contrast checker → · Palette generator →

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