#781C8D#781C8D

#781C8D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.182 H 319.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#781C8D
RGBrgb(120, 28, 141)
HSLhsl(289, 67%, 33%)
HSVhsv(289, 80%, 55%)
CMYKcmyk(14.9%, 80.1%, 0%, 44.7%)
CIE-LABlab(31.22, 53.85, -42.36)
CIE-LCHlch(31.22, 68.51, 321.81°)
OKLaboklab(43.11% 0.1378 -0.119)
OKLCHoklch(43.11% 0.182 319.2)
XYZxyz(12.9681, 6.7473, 25.8134)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C8D #318D1C
analogous
#401C8D #781C8D #8D1C69
triadic
#781C8D #8D781C #1C8D78
tetradic
#781C8D #8D401C #318D1C #1C698D
square
#781C8D #8D401C #318D1C #1C698D
split-complementary
#781C8D #698D1C #1C8D40
monochromatic
#210827 #4D125A #781C8D #A326C0 #C049DB

Accessibility & contrast

On white

8.94
#781C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#781C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C8D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C8D#FFFFFF#000000##FFFFFF
##781C8D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#254C8B
Tritanopia (blue-blind)
#783555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781c8d;
/* rgb */ color: rgb(120, 28, 141);
/* oklch */ color: oklch(43.1% 0.182 319.2);
Tailwind
colors: {
  custom: {
    50: '#a364af',
    500: '#781c8d',
    950: '#000000',
  },
}
SCSS
$custom: #781c8d;
$custom-light: #a364af;
$custom-dark: #000000;
JSON
{
  "hex": "#781c8d",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 288.85,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.1821,
    "h": 319.2
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#781C8D
secondary
#5EBD48
accent
#EA3E5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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