#781D8D#781D8D

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

Color values

HEX#781D8D
RGBrgb(120, 29, 141)
HSLhsl(289, 66%, 33%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.9%, 79.4%, 0%, 44.7%)
CIE-LABlab(31.34, 53.53, -42.18)
CIE-LCHlch(31.34, 68.15, 321.76°)
OKLaboklab(43.19% 0.1369 -0.1185)
OKLCHoklch(43.19% 0.181 319.1)
XYZxyz(12.9922, 6.7955, 25.8215)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8D #328D1D
analogous
#401D8D #781D8D #8D1D6A
triadic
#781D8D #8D781D #1D8D78
tetradic
#781D8D #8D401D #328D1D #1D6A8D
square
#781D8D #8D401D #328D1D #1D6A8D
split-complementary
#781D8D #6A8D1D #1D8D40
monochromatic
#220827 #4D135A #781D8D #A327C0 #BF4BDA

Accessibility & contrast

On white

8.90
#781D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D8D
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8D#FFFFFF#000000##FFFFFF
##781D8D1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#783555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781d8d;
/* rgb */ color: rgb(120, 29, 141);
/* oklch */ color: oklch(43.2% 0.181 319.1);
Tailwind
colors: {
  custom: {
    50: '#a365af',
    500: '#781d8d',
    950: '#000000',
  },
}
SCSS
$custom: #781d8d;
$custom-light: #a365af;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8d",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 288.75,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.18111,
    "h": 319.1
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#781D8D
secondary
#5FBC4A
accent
#E93F5F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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