#781D8C#781D8C

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

Color values

HEX#781D8C
RGBrgb(120, 29, 140)
HSLhsl(289, 66%, 33%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.3%, 79.3%, 0%, 45.1%)
CIE-LABlab(31.27, 53.33, -41.67)
CIE-LCHlch(31.27, 67.68, 322.00°)
OKLaboklab(43.12% 0.1371 -0.117)
OKLCHoklch(43.12% 0.18 319.5)
XYZxyz(12.9181, 6.7659, 25.4314)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8C #318C1D
analogous
#401D8C #781D8C #8C1D68
triadic
#781D8C #8C781D #1D8C78
tetradic
#781D8C #8C401D #318C1D #1D688C
square
#781D8C #8C401D #318C1D #1D688C
split-complementary
#781D8C #688C1D #1D8C40
monochromatic
#210827 #4D1259 #781D8C #A328BF #C04AD9

Accessibility & contrast

On white

8.92
#781D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D8C
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8C#FFFFFF#000000##FFFFFF
##781D8C1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#783554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781d8c;
/* rgb */ color: rgb(120, 29, 140);
/* oklch */ color: oklch(43.1% 0.180 319.5);
Tailwind
colors: {
  custom: {
    50: '#a365ae',
    500: '#781d8c',
    950: '#000000',
  },
}
SCSS
$custom: #781d8c;
$custom-light: #a365ae;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8c",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 289.189,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43119,
    "c": 0.18025,
    "h": 319.5
  },
  "luminance": 0.06765
}

Semantic roles & 50–950 ramp

primary
#781D8C
secondary
#5EBC49
accent
#E93F5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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