#781D8E#781D8E

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

Color values

HEX#781D8E
RGBrgb(120, 29, 142)
HSLhsl(288, 66%, 34%)
HSVhsv(288, 80%, 56%)
CMYKcmyk(15.5%, 79.6%, 0%, 44.3%)
CIE-LABlab(31.41, 53.72, -42.69)
CIE-LCHlch(31.41, 68.61, 321.53°)
OKLaboklab(43.26% 0.1368 -0.12)
OKLCHoklch(43.26% 0.182 318.7)
XYZxyz(13.0669, 6.8254, 26.2151)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8E #338E1D
analogous
#3F1D8E #781D8E #8E1D6B
triadic
#781D8E #8E781D #1D8E78
tetradic
#781D8E #8E3F1D #338E1D #1D6B8E
square
#781D8E #8E3F1D #338E1D #1D6B8E
split-complementary
#781D8E #6B8E1D #1D8E3F
monochromatic
#220828 #4D135B #781D8E #A327C1 #BE4BDA

Accessibility & contrast

On white

8.88
#781D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#781D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D8E
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8E#FFFFFF#000000##FFFFFF
##781D8E1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#783655
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781d8e;
/* rgb */ color: rgb(120, 29, 142);
/* oklch */ color: oklch(43.3% 0.182 318.7);
Tailwind
colors: {
  custom: {
    50: '#a365b0',
    500: '#781d8e',
    950: '#000000',
  },
}
SCSS
$custom: #781d8e;
$custom-light: #a365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8e",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 288.319,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43261,
    "c": 0.18199,
    "h": 318.7
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#781D8E
secondary
#60BD4A
accent
#E93F60
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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