#781C8C#781C8C

#781C8C is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.181 H 319.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#781C8C
RGBrgb(120, 28, 140)
HSLhsl(289, 67%, 33%)
HSVhsv(289, 80%, 55%)
CMYKcmyk(14.3%, 80%, 0%, 45.1%)
CIE-LABlab(31.16, 53.66, -41.85)
CIE-LCHlch(31.16, 68.05, 322.05°)
OKLaboklab(43.04% 0.1379 -0.1176)
OKLCHoklch(43.04% 0.181 319.6)
XYZxyz(12.8940, 6.7177, 25.4233)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C8C #308C1C
analogous
#401C8C #781C8C #8C1C68
triadic
#781C8C #8C781C #1C8C78
tetradic
#781C8C #8C401C #308C1C #1C688C
square
#781C8C #8C401C #308C1C #1C688C
split-complementary
#781C8C #688C1C #1C8C40
monochromatic
#210826 #4C1259 #781C8C #A426BF #C048DA

Accessibility & contrast

On white

8.96
#781C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#781C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C8C
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C8C#FFFFFF#000000##FFFFFF
##781C8C1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#264C8A
Tritanopia (blue-blind)
#783454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781c8c;
/* rgb */ color: rgb(120, 28, 140);
/* oklch */ color: oklch(43.0% 0.181 319.6);
Tailwind
colors: {
  custom: {
    50: '#a364ae',
    500: '#781c8c',
    950: '#000000',
  },
}
SCSS
$custom: #781c8c;
$custom-light: #a364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#781c8c",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 289.286,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43039,
    "c": 0.18124,
    "h": 319.6
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#781C8C
secondary
#5CBC48
accent
#EA3E5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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