#781C7C#781C7C

#781C7C is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.168 H 326.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#781C7C
RGBrgb(120, 28, 124)
HSLhsl(298, 63%, 30%)
HSVhsv(298, 77%, 49%)
CMYKcmyk(3.2%, 77.4%, 0%, 51.4%)
CIE-LABlab(30.11, 50.69, -33.54)
CIE-LCHlch(30.11, 60.78, 326.51°)
OKLaboklab(41.96% 0.1394 -0.0932)
OKLCHoklch(41.96% 0.168 326.2)
XYZxyz(11.7988, 6.2796, 19.6555)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C7C #207C1C
analogous
#481C7C #781C7C #7C1C50
triadic
#781C7C #7C781C #1C7C78
tetradic
#781C7C #7C481C #207C1C #1C507C
square
#781C7C #7C481C #207C1C #1C507C
split-complementary
#781C7C #507C1C #1C7C48
monochromatic
#180619 #48114A #781C7C #A827AE #CD3FD4

Accessibility & contrast

On white

9.31
#781C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#781C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C7C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C7C#FFFFFF#000000##FFFFFF
##781C7C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#7B2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c7c;
/* rgb */ color: rgb(120, 28, 124);
/* oklch */ color: oklch(42.0% 0.168 326.2);
Tailwind
colors: {
  custom: {
    50: '#a263a2',
    500: '#781c7c',
    950: '#000000',
  },
}
SCSS
$custom: #781c7c;
$custom-light: #a263a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781c7c",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 297.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41961,
    "c": 0.16768,
    "h": 326.2
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#781C7C
secondary
#48B044
accent
#E64248
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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