#781A7E#781A7E

#781A7E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.171 H 325.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#781A7E
RGBrgb(120, 26, 126)
HSLhsl(296, 66%, 30%)
HSVhsv(296, 79%, 49%)
CMYKcmyk(4.8%, 79.4%, 0%, 50.6%)
CIE-LABlab(30.01, 51.69, -34.96)
CIE-LCHlch(30.01, 62.40, 325.93°)
OKLaboklab(41.93% 0.1411 -0.0974)
OKLCHoklch(41.93% 0.171 325.4)
XYZxyz(11.8807, 6.2390, 20.3131)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7E #207E1A
analogous
#461A7E #781A7E #7E1A52
triadic
#781A7E #7E781A #1A7E78
tetradic
#781A7E #7E461A #207E1A #1A527E
square
#781A7E #7E461A #207E1A #1A527E
split-complementary
#781A7E #527E1A #1A7E46
monochromatic
#180519 #48104B #781A7E #A824B1 #CD3CD7

Accessibility & contrast

On white

9.34
#781A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A7E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7E#FFFFFF#000000##FFFFFF
##781A7E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7B2C4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781a7e;
/* rgb */ color: rgb(120, 26, 126);
/* oklch */ color: oklch(41.9% 0.171 325.4);
Tailwind
colors: {
  custom: {
    50: '#a263a4',
    500: '#781a7e',
    950: '#000000',
  },
}
SCSS
$custom: #781a7e;
$custom-light: #a263a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7e",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 296.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4193,
    "c": 0.1714,
    "h": 325.4
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#781A7E
secondary
#48B242
accent
#E93F49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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