#781E87#781E87

#781E87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.175 H 321.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#781E87
RGBrgb(120, 30, 135)
HSLhsl(291, 64%, 32%)
HSVhsv(291, 78%, 53%)
CMYKcmyk(11.1%, 77.8%, 0%, 47.1%)
CIE-LABlab(31.05, 52.04, -38.92)
CIE-LCHlch(31.05, 64.99, 323.20°)
OKLaboklab(42.86% 0.1368 -0.109)
OKLCHoklch(42.86% 0.175 321.4)
XYZxyz(12.5827, 6.6716, 23.5420)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E87 #2D871E
analogous
#441E87 #781E87 #871E61
triadic
#781E87 #87781E #1E8778
tetradic
#781E87 #87441E #2D871E #1E6187
square
#781E87 #87441E #2D871E #1E6187
split-complementary
#781E87 #61871E #1E8744
monochromatic
#1F0823 #4B1355 #781E87 #A529B9 #C249D7

Accessibility & contrast

On white

9.00
#781E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E87
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E87#FFFFFF#000000##FFFFFF
##781E871.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2C4C85
Tritanopia (blue-blind)
#793352
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781e87;
/* rgb */ color: rgb(120, 30, 135);
/* oklch */ color: oklch(42.9% 0.175 321.4);
Tailwind
colors: {
  custom: {
    50: '#a265aa',
    500: '#781e87',
    950: '#000000',
  },
}
SCSS
$custom: #781e87;
$custom-light: #a265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781e87",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 291.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.17488,
    "h": 321.4
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#781E87
secondary
#58B948
accent
#E74159
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781E87

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

Preview Lab → · Contrast checker → · Palette generator →

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