#781A7C#781A7C

#781A7C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.170 H 326.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#781A7C
RGBrgb(120, 26, 124)
HSLhsl(298, 65%, 29%)
HSVhsv(298, 79%, 49%)
CMYKcmyk(3.2%, 79%, 0%, 51.4%)
CIE-LABlab(29.88, 51.33, -33.90)
CIE-LCHlch(29.88, 61.52, 326.56°)
OKLaboklab(41.8% 0.1412 -0.0943)
OKLCHoklch(41.8% 0.17 326.3)
XYZxyz(11.7530, 6.1879, 19.6402)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7C #1E7C1A
analogous
#471A7C #781A7C #7C1A4F
triadic
#781A7C #7C781A #1A7C78
tetradic
#781A7C #7C471A #1E7C1A #1A4F7C
square
#781A7C #7C471A #1E7C1A #1A4F7C
split-complementary
#781A7C #4F7C1A #1A7C47
monochromatic
#180519 #470F49 #781A7C #A925AF #CF3BD6

Accessibility & contrast

On white

9.39
#781A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A7C
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7C#FFFFFF#000000##FFFFFF
##781A7C1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#324A7A
Tritanopia (blue-blind)
#7B2B4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781a7c;
/* rgb */ color: rgb(120, 26, 124);
/* oklch */ color: oklch(41.8% 0.170 326.3);
Tailwind
colors: {
  custom: {
    50: '#a263a2',
    500: '#781a7c',
    950: '#000000',
  },
}
SCSS
$custom: #781a7c;
$custom-light: #a263a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7c",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 297.551,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.418,
    "c": 0.16976,
    "h": 326.3
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#781A7C
secondary
#46B042
accent
#E84046
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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