#781C84#781C84

#781C84 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.174 H 322.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#781C84
RGBrgb(120, 28, 132)
HSLhsl(293, 65%, 31%)
HSVhsv(293, 79%, 52%)
CMYKcmyk(9.1%, 78.8%, 0%, 48.2%)
CIE-LABlab(30.62, 52.14, -37.74)
CIE-LCHlch(30.62, 64.37, 324.10°)
OKLaboklab(42.49% 0.1388 -0.1055)
OKLCHoklch(42.49% 0.174 322.8)
XYZxyz(12.3254, 6.4903, 22.4289)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C84 #28841C
analogous
#441C84 #781C84 #841C5C
triadic
#781C84 #84781C #1C8478
tetradic
#781C84 #84441C #28841C #1C5C84
square
#781C84 #84441C #28841C #1C5C84
split-complementary
#781C84 #5C841C #1C8444
monochromatic
#1C071F #4A1152 #781C84 #A627B6 #C643D7

Accessibility & contrast

On white

9.14
#781C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#781C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C84
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C84#FFFFFF#000000##FFFFFF
##781C841.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#2D4C82
Tritanopia (blue-blind)
#7A314F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781c84;
/* rgb */ color: rgb(120, 28, 132);
/* oklch */ color: oklch(42.5% 0.174 322.8);
Tailwind
colors: {
  custom: {
    50: '#a264a8',
    500: '#781c84',
    950: '#000000',
  },
}
SCSS
$custom: #781c84;
$custom-light: #a264a8;
$custom-dark: #000000;
JSON
{
  "hex": "#781c84",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 293.077,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.17439,
    "h": 322.8
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#781C84
secondary
#52B745
accent
#E84053
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781C84

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

Preview Lab → · Contrast checker → · Palette generator →

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