#781E78#781E78

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

Color values

HEX#781E78
RGBrgb(120, 30, 120)
HSLhsl(300, 60%, 29%)
HSVhsv(300, 75%, 47%)
CMYKcmyk(0%, 75%, 0%, 52.9%)
CIE-LABlab(30.10, 49.29, -31.02)
CIE-LCHlch(30.10, 58.23, 327.82°)
OKLaboklab(41.88% 0.1375 -0.0859)
OKLCHoklch(41.88% 0.162 328)
XYZxyz(11.6000, 6.2785, 18.3666)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E78 #1E781E
analogous
#4B1E78 #781E78 #781E4B
triadic
#781E78 #78781E #1E7878
tetradic
#781E78 #784B1E #1E781E #1E4B78
square
#781E78 #784B1E #1E781E #1E4B78
split-complementary
#781E78 #4B781E #1E784B
monochromatic
#180618 #471247 #781E78 #A92AA9 #CF41CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781E78#FFFFFF#000000##FFFFFF
##781E781.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)
#0C3F7A
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#7C2C49
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781e78;
/* rgb */ color: rgb(120, 30, 120);
/* oklch */ color: oklch(41.9% 0.162 328.0);
Tailwind
colors: {
  custom: {
    50: '#a2649f',
    500: '#781e78',
    950: '#000000',
  },
}
SCSS
$custom: #781e78;
$custom-light: #a2649f;
$custom-dark: #000000;
JSON
{
  "hex": "#781e78",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41881,
    "c": 0.16215,
    "h": 328
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#781E78
secondary
#46AC46
accent
#E34545
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781E78

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

Preview Lab → · Contrast checker → · Palette generator →

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