#781C8F#781C8F

#781C8F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.184 H 318.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#781C8F
RGBrgb(120, 28, 143)
HSLhsl(288, 67%, 34%)
HSVhsv(288, 80%, 56%)
CMYKcmyk(16.1%, 80.4%, 0%, 43.9%)
CIE-LABlab(31.36, 54.24, -43.37)
CIE-LCHlch(31.36, 69.45, 321.35°)
OKLaboklab(43.25% 0.1375 -0.122)
OKLCHoklch(43.25% 0.184 318.4)
XYZxyz(13.1182, 6.8074, 26.6042)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C8F #338F1C
analogous
#3E1C8F #781C8F #8F1C6C
triadic
#781C8F #8F781C #1C8F78
tetradic
#781C8F #8F3E1C #338F1C #1C6C8F
square
#781C8F #8F3E1C #338F1C #1C6C8F
split-complementary
#781C8F #6C8F1C #1C8F3E
monochromatic
#220829 #4D125C #781C8F #A326C2 #BE4ADC

Accessibility & contrast

On white

8.89
#781C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#781C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C8F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C8F#FFFFFF#000000##FFFFFF
##781C8F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#224D8D
Tritanopia (blue-blind)
#773656
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781c8f;
/* rgb */ color: rgb(120, 28, 143);
/* oklch */ color: oklch(43.3% 0.184 318.4);
Tailwind
colors: {
  custom: {
    50: '#a364b0',
    500: '#781c8f',
    950: '#000000',
  },
}
SCSS
$custom: #781c8f;
$custom-light: #a364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781c8f",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 288,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43253,
    "c": 0.18384,
    "h": 318.4
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#781C8F
secondary
#60BE49
accent
#EA3E60
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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