#781D8B#781D8B

#781D8B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.179 H 319.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#781D8B
RGBrgb(120, 29, 139)
HSLhsl(290, 65%, 33%)
HSVhsv(290, 79%, 55%)
CMYKcmyk(13.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(31.20, 53.14, -41.16)
CIE-LCHlch(31.20, 67.22, 322.24°)
OKLaboklab(43.05% 0.1372 -0.1155)
OKLCHoklch(43.05% 0.179 319.9)
XYZxyz(12.8447, 6.7365, 25.0448)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8B #308B1D
analogous
#411D8B #781D8B #8B1D67
triadic
#781D8B #8B781D #1D8B78
tetradic
#781D8B #8B411D #308B1D #1D678B
square
#781D8B #8B411D #308B1D #1D678B
split-complementary
#781D8B #678B1D #1D8B41
monochromatic
#210826 #4C1258 #781D8B #A428BE #C049D9

Accessibility & contrast

On white

8.95
#781D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D8B
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8B#FFFFFF#000000##FFFFFF
##781D8B1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#274C89
Tritanopia (blue-blind)
#783454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781d8b;
/* rgb */ color: rgb(120, 29, 139);
/* oklch */ color: oklch(43.0% 0.179 319.9);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#781d8b',
    950: '#000000',
  },
}
SCSS
$custom: #781d8b;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8b",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 289.636,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43049,
    "c": 0.17938,
    "h": 319.9
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#781D8B
secondary
#5CBB49
accent
#E83F5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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