#781E8E#781E8E

#781E8E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.181 H 318.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#781E8E
RGBrgb(120, 30, 142)
HSLhsl(288, 65%, 34%)
HSVhsv(288, 79%, 56%)
CMYKcmyk(15.5%, 78.9%, 0%, 44.3%)
CIE-LABlab(31.52, 53.39, -42.50)
CIE-LCHlch(31.52, 68.24, 321.48°)
OKLaboklab(43.34% 0.1359 -0.1195)
OKLCHoklch(43.34% 0.181 318.7)
XYZxyz(13.0918, 6.8752, 26.2234)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8E #348E1E
analogous
#401E8E #781E8E #8E1E6C
triadic
#781E8E #8E781E #1E8E78
tetradic
#781E8E #8E401E #348E1E #1E6C8E
square
#781E8E #8E401E #348E1E #1E6C8E
split-complementary
#781E8E #6C8E1E #1E8E40
monochromatic
#230929 #4D135B #781E8E #A329C1 #BE4DD9

Accessibility & contrast

On white

8.84
#781E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#781E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E8E
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E8E#FFFFFF#000000##FFFFFF
##781E8E1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#783656
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8e;
/* rgb */ color: rgb(120, 30, 142);
/* oklch */ color: oklch(43.3% 0.181 318.7);
Tailwind
colors: {
  custom: {
    50: '#a365b0',
    500: '#781e8e',
    950: '#000000',
  },
}
SCSS
$custom: #781e8e;
$custom-light: #a365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8e",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 288.214,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43342,
    "c": 0.18098,
    "h": 318.7
  },
  "luminance": 0.06875
}

Semantic roles & 50–950 ramp

primary
#781E8E
secondary
#62BC4C
accent
#E84061
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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