#781D8A#781D8A

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

Color values

HEX#781D8A
RGBrgb(120, 29, 138)
HSLhsl(290, 65%, 33%)
HSVhsv(290, 79%, 54%)
CMYKcmyk(13%, 79%, 0%, 45.9%)
CIE-LABlab(31.13, 52.95, -40.65)
CIE-LCHlch(31.13, 66.75, 322.48°)
OKLaboklab(42.98% 0.1373 -0.114)
OKLCHoklch(42.98% 0.179 320.3)
XYZxyz(12.7720, 6.7075, 24.6618)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8A #2F8A1D
analogous
#421D8A #781D8A #8A1D65
triadic
#781D8A #8A781D #1D8A78
tetradic
#781D8A #8A421D #2F8A1D #1D658A
square
#781D8A #8A421D #2F8A1D #1D658A
split-complementary
#781D8A #658A1D #1D8A42
monochromatic
#200825 #4C1257 #781D8A #A428BD #C149D9

Accessibility & contrast

On white

8.97
#781D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#781D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D8A
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8A#FFFFFF#000000##FFFFFF
##781D8A1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#284C88
Tritanopia (blue-blind)
#783453
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781d8a;
/* rgb */ color: rgb(120, 29, 138);
/* oklch */ color: oklch(43.0% 0.179 320.3);
Tailwind
colors: {
  custom: {
    50: '#a364ad',
    500: '#781d8a',
    950: '#000000',
  },
}
SCSS
$custom: #781d8a;
$custom-light: #a364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8a",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 290.092,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.17851,
    "h": 320.3
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#781D8A
secondary
#5BBB48
accent
#E8405B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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