#781D9D#781D9D

#781D9D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.195 H 313.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#781D9D
RGBrgb(120, 29, 157)
HSLhsl(283, 69%, 36%)
HSVhsv(283, 82%, 62%)
CMYKcmyk(23.6%, 81.5%, 0%, 38.4%)
CIE-LABlab(32.49, 56.71, -50.12)
CIE-LCHlch(32.49, 75.69, 318.53°)
OKLaboklab(44.37% 0.1341 -0.1418)
OKLCHoklch(44.37% 0.195 313.4)
XYZxyz(14.2698, 7.3066, 32.5504)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D9D #429D1D
analogous
#381D9D #781D9D #9D1D82
triadic
#781D9D #9D781D #1D9D78
tetradic
#781D9D #9D381D #429D1D #1D829D
square
#781D9D #9D381D #429D1D #1D829D
split-complementary
#781D9D #829D1D #1D9D38
monochromatic
#290A36 #511369 #781D9D #9F27D1 #B755E0

Accessibility & contrast

On white

8.53
#781D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#781D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D9D
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D9D#FFFFFF#000000##FFFFFF
##781D9D1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#094E9A
Tritanopia (blue-blind)
#743D5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781d9d;
/* rgb */ color: rgb(120, 29, 157);
/* oklch */ color: oklch(44.4% 0.195 313.4);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#781d9d',
    950: '#000000',
  },
}
SCSS
$custom: #781d9d;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781d9d",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 282.656,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.19519,
    "h": 313.4
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#781D9D
secondary
#73C353
accent
#EC3C6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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