#781A7D#781A7D

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

Color values

HEX#781A7D
RGBrgb(120, 26, 125)
HSLhsl(297, 66%, 30%)
HSVhsv(297, 79%, 49%)
CMYKcmyk(4%, 79.2%, 0%, 51%)
CIE-LABlab(29.94, 51.51, -34.43)
CIE-LCHlch(29.94, 61.96, 326.24°)
OKLaboklab(41.87% 0.1411 -0.0958)
OKLCHoklch(41.87% 0.171 325.8)
XYZxyz(11.8165, 6.2133, 19.9750)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A7D #1F7D1A
analogous
#471A7D #781A7D #7D1A50
triadic
#781A7D #7D781A #1A7D78
tetradic
#781A7D #7D471A #1F7D1A #1A507D
square
#781A7D #7D471A #1F7D1A #1A507D
split-complementary
#781A7D #507D1A #1A7D47
monochromatic
#180519 #470F4A #781A7D #A925B0 #CE3BD6

Accessibility & contrast

On white

9.36
#781A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781A7D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A7D#FFFFFF#000000##FFFFFF
##781A7D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#314A7B
Tritanopia (blue-blind)
#7B2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781a7d;
/* rgb */ color: rgb(120, 26, 125);
/* oklch */ color: oklch(41.9% 0.171 325.8);
Tailwind
colors: {
  custom: {
    50: '#a263a3',
    500: '#781a7d',
    950: '#000000',
  },
}
SCSS
$custom: #781a7d;
$custom-light: #a263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#781a7d",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 296.97,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41865,
    "c": 0.17058,
    "h": 325.8
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#781A7D
secondary
#47B142
accent
#E93F48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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