#781C87#781C87

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

Color values

HEX#781C87
RGBrgb(120, 28, 135)
HSLhsl(292, 66%, 32%)
HSVhsv(292, 79%, 53%)
CMYKcmyk(11.1%, 79.3%, 0%, 47.1%)
CIE-LABlab(30.82, 52.71, -39.29)
CIE-LCHlch(30.82, 65.74, 323.29°)
OKLaboklab(42.69% 0.1386 -0.1101)
OKLCHoklch(42.69% 0.177 321.5)
XYZxyz(12.5337, 6.5736, 23.5256)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C87 #2B871C
analogous
#431C87 #781C87 #871C61
triadic
#781C87 #87781C #1C8778
tetradic
#781C87 #87431C #2B871C #1C6187
square
#781C87 #87431C #2B871C #1C6187
split-complementary
#781C87 #61871C #1C8743
monochromatic
#1E0722 #4B1154 #781C87 #A527BA #C445D8

Accessibility & contrast

On white

9.07
#781C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781C87
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C87#FFFFFF#000000##FFFFFF
##781C871.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.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: #781c87;
/* rgb */ color: rgb(120, 28, 135);
/* oklch */ color: oklch(42.7% 0.177 321.5);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#781c87',
    950: '#000000',
  },
}
SCSS
$custom: #781c87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781c87",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 291.589,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42691,
    "c": 0.17694,
    "h": 321.5
  },
  "luminance": 0.06573
}

Semantic roles & 50–950 ramp

primary
#781C87
secondary
#55BA45
accent
#E93F57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781C87

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

Preview Lab → · Contrast checker → · Palette generator →

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