#781E8C#781E8C

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

Color values

HEX#781E8C
RGBrgb(120, 30, 140)
HSLhsl(289, 65%, 33%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.3%, 78.6%, 0%, 45.1%)
CIE-LABlab(31.38, 53.00, -41.49)
CIE-LCHlch(31.38, 67.30, 321.95°)
OKLaboklab(43.2% 0.1362 -0.1165)
OKLCHoklch(43.2% 0.179 319.5)
XYZxyz(12.9430, 6.8157, 25.4397)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8C #328C1E
analogous
#411E8C #781E8C #8C1E69
triadic
#781E8C #8C781E #1E8C78
tetradic
#781E8C #8C411E #328C1E #1E698C
square
#781E8C #8C411E #328C1E #1E698C
split-complementary
#781E8C #698C1E #1E8C41
monochromatic
#220827 #4D135A #781E8C #A329BE #BF4CD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781E8C#FFFFFF#000000##FFFFFF
##781E8C1.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)
#00448F
Deuteranopia (green-blind)
#274D8A
Tritanopia (blue-blind)
#783554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8c;
/* rgb */ color: rgb(120, 30, 140);
/* oklch */ color: oklch(43.2% 0.179 319.5);
Tailwind
colors: {
  custom: {
    50: '#a365ae',
    500: '#781e8c',
    950: '#000000',
  },
}
SCSS
$custom: #781e8c;
$custom-light: #a365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8c",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 289.091,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43201,
    "c": 0.17923,
    "h": 319.5
  },
  "luminance": 0.06815
}

Semantic roles & 50–950 ramp

primary
#781E8C
secondary
#5FBB4B
accent
#E8405F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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