#781E84#781E84

#781E84 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.172 H 322.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#781E84
RGBrgb(120, 30, 132)
HSLhsl(293, 63%, 32%)
HSVhsv(293, 77%, 52%)
CMYKcmyk(9.1%, 77.3%, 0%, 48.2%)
CIE-LABlab(30.85, 51.47, -37.37)
CIE-LCHlch(30.85, 63.61, 324.02°)
OKLaboklab(42.65% 0.137 -0.1044)
OKLCHoklch(42.65% 0.172 322.7)
XYZxyz(12.3744, 6.5883, 22.4452)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E84 #2A841E
analogous
#451E84 #781E84 #841E5D
triadic
#781E84 #84781E #1E8478
tetradic
#781E84 #84451E #2A841E #1E5D84
square
#781E84 #84451E #2A841E #1E5D84
split-complementary
#781E84 #5D841E #1E8445
monochromatic
#1D0720 #4B1352 #781E84 #A529B6 #C547D5

Accessibility & contrast

On white

9.06
#781E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#781E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E84
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E84#FFFFFF#000000##FFFFFF
##781E841.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#2E4C82
Tritanopia (blue-blind)
#7A3250
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781e84;
/* rgb */ color: rgb(120, 30, 132);
/* oklch */ color: oklch(42.7% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#a265a8',
    500: '#781e84',
    950: '#000000',
  },
}
SCSS
$custom: #781e84;
$custom-light: #a265a8;
$custom-dark: #000000;
JSON
{
  "hex": "#781e84",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 292.941,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42653,
    "c": 0.17229,
    "h": 322.7
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#781E84
secondary
#54B747
accent
#E64255
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781E84

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

Preview Lab → · Contrast checker → · Palette generator →

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