#781A7B#781A7B

#781A7B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.169 H 326.7°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#781A7B
RGBrgb(120, 26, 123)
HSLhsl(298, 65%, 29%)
HSVhsv(298, 79%, 48%)
CMYKcmyk(2.4%, 78.9%, 0%, 51.8%)
CIE-LABlab(29.82, 51.16, -33.37)
CIE-LCHlch(29.82, 61.08, 326.89°)
OKLaboklab(41.74% 0.1412 -0.0927)
OKLCHoklch(41.74% 0.169 326.7)
XYZxyz(11.6901, 6.1627, 19.3089)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7B #1D7B1A
analogous
#481A7B #781A7B #7B1A4E
triadic
#781A7B #7B781A #1A7B78
tetradic
#781A7B #7B481A #1D7B1A #1A4E7B
square
#781A7B #7B481A #1D7B1A #1A4E7B
split-complementary
#781A7B #4E7B1A #1A7B48
monochromatic
#190519 #470F48 #781A7B #A925AE #D13AD5

Accessibility & contrast

On white

9.41
#781A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#781A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A7B
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7B#FFFFFF#000000##FFFFFF
##781A7B1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#334A79
Tritanopia (blue-blind)
#7B2B4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781a7b;
/* rgb */ color: rgb(120, 26, 123);
/* oklch */ color: oklch(41.7% 0.169 326.7);
Tailwind
colors: {
  custom: {
    50: '#a263a2',
    500: '#781a7b',
    950: '#000000',
  },
}
SCSS
$custom: #781a7b;
$custom-light: #a263a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7b",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 298.144,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41736,
    "c": 0.16894,
    "h": 326.7
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#781A7B
secondary
#45AF42
accent
#E84045
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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