#781C7F#781C7F

#781C7F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.170 H 324.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#781C7F
RGBrgb(120, 28, 127)
HSLhsl(296, 64%, 30%)
HSVhsv(296, 78%, 50%)
CMYKcmyk(5.5%, 78%, 0%, 50.2%)
CIE-LABlab(30.30, 51.23, -35.13)
CIE-LCHlch(30.30, 62.11, 325.56°)
OKLaboklab(42.16% 0.1392 -0.0979)
OKLCHoklch(42.16% 0.17 324.9)
XYZxyz(11.9915, 6.3567, 20.6699)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C7F #237F1C
analogous
#471C7F #781C7F #7F1C54
triadic
#781C7F #7F781C #1C7F78
tetradic
#781C7F #7F471C #237F1C #1C547F
square
#781C7F #7F471C #237F1C #1C547F
split-complementary
#781C7F #547F1C #1C7F47
monochromatic
#19061B #49114D #781C7F #A727B1 #CA40D5

Accessibility & contrast

On white

9.25
#781C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C7F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C7F#FFFFFF#000000##FFFFFF
##781C7F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7B2E4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781c7f;
/* rgb */ color: rgb(120, 28, 127);
/* oklch */ color: oklch(42.2% 0.170 324.9);
Tailwind
colors: {
  custom: {
    50: '#a264a4',
    500: '#781c7f',
    950: '#000000',
  },
}
SCSS
$custom: #781c7f;
$custom-light: #a264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781c7f",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 295.758,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42155,
    "c": 0.17018,
    "h": 324.9
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#781C7F
secondary
#4CB344
accent
#E7414D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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