#781A8E#781A8E

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

Color values

HEX#781A8E
RGBrgb(120, 26, 142)
HSLhsl(289, 69%, 33%)
HSVhsv(289, 82%, 56%)
CMYKcmyk(15.5%, 81.7%, 0%, 44.3%)
CIE-LABlab(31.08, 54.66, -43.21)
CIE-LCHlch(31.08, 69.68, 321.67°)
OKLaboklab(43.03% 0.1393 -0.1215)
OKLCHoklch(43.03% 0.185 318.9)
XYZxyz(12.9970, 6.6855, 26.1918)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A8E #308E1A
analogous
#3E1A8E #781A8E #8E1A6A
triadic
#781A8E #8E781A #1A8E78
tetradic
#781A8E #8E3E1A #308E1A #1A6A8E
square
#781A8E #8E3E1A #308E1A #1A6A8E
split-complementary
#781A8E #6A8E1A #1A8E3E
monochromatic
#210727 #4C115A #781A8E #A423C2 #C045DD

Accessibility & contrast

On white

8.99
#781A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781A8E
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A8E#FFFFFF#000000##FFFFFF
##781A8E1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#224C8C
Tritanopia (blue-blind)
#783455
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781a8e;
/* rgb */ color: rgb(120, 26, 142);
/* oklch */ color: oklch(43.0% 0.185 318.9);
Tailwind
colors: {
  custom: {
    50: '#a364b0',
    500: '#781a8e',
    950: '#000000',
  },
}
SCSS
$custom: #781a8e;
$custom-light: #a364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781a8e",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 288.621,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43031,
    "c": 0.18485,
    "h": 318.9
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

primary
#781A8E
secondary
#5CBE45
accent
#EC3C5D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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