#781D87#781D87

#781D87 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.176 H 321.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#781D87
RGBrgb(120, 29, 135)
HSLhsl(292, 65%, 32%)
HSVhsv(292, 79%, 53%)
CMYKcmyk(11.1%, 78.5%, 0%, 47.1%)
CIE-LABlab(30.93, 52.38, -39.11)
CIE-LCHlch(30.93, 65.37, 323.25°)
OKLaboklab(42.77% 0.1377 -0.1095)
OKLCHoklch(42.77% 0.176 321.5)
XYZxyz(12.5578, 6.6218, 23.5337)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D87 #2C871D
analogous
#431D87 #781D87 #871D61
triadic
#781D87 #87781D #1D8778
tetradic
#781D87 #87431D #2C871D #1D6187
square
#781D87 #87431D #2C871D #1D6187
split-complementary
#781D87 #61871D #1D8743
monochromatic
#1E0722 #4B1255 #781D87 #A528B9 #C347D7

Accessibility & contrast

On white

9.04
#781D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#781D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D87
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D87#FFFFFF#000000##FFFFFF
##781D871.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#793251
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781d87;
/* rgb */ color: rgb(120, 29, 135);
/* oklch */ color: oklch(42.8% 0.176 321.5);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#781d87',
    950: '#000000',
  },
}
SCSS
$custom: #781d87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781d87",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 291.509,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42772,
    "c": 0.17593,
    "h": 321.5
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#781D87
secondary
#57B946
accent
#E84058
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781D87

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

Preview Lab → · Contrast checker → · Palette generator →

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