#781C86#781C86

#781C86 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.176 H 321.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#781C86
RGBrgb(120, 28, 134)
HSLhsl(292, 65%, 32%)
HSVhsv(292, 79%, 53%)
CMYKcmyk(10.4%, 79.1%, 0%, 47.5%)
CIE-LABlab(30.75, 52.52, -38.78)
CIE-LCHlch(30.75, 65.28, 323.56°)
OKLaboklab(42.62% 0.1387 -0.1085)
OKLCHoklch(42.62% 0.176 321.9)
XYZxyz(12.4636, 6.5455, 23.1566)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C86 #2A861C
analogous
#431C86 #781C86 #861C5F
triadic
#781C86 #86781C #1C8678
tetradic
#781C86 #86431C #2A861C #1C5F86
square
#781C86 #86431C #2A861C #1C5F86
split-complementary
#781C86 #5F861C #1C8643
monochromatic
#1D0721 #4B1153 #781C86 #A527B9 #C544D8

Accessibility & contrast

On white

9.09
#781C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#781C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C86
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C86#FFFFFF#000000##FFFFFF
##781C861.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#2B4C84
Tritanopia (blue-blind)
#793151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781c86;
/* rgb */ color: rgb(120, 28, 134);
/* oklch */ color: oklch(42.6% 0.176 321.9);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#781c86',
    950: '#000000',
  },
}
SCSS
$custom: #781c86;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781c86",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 292.075,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.17609,
    "h": 321.9
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#781C86
secondary
#54B945
accent
#E83F56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781C86

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

Preview Lab → · Contrast checker → · Palette generator →

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