#781C9E#781C9E

#781C9E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.197 H 313.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#781C9E
RGBrgb(120, 28, 158)
HSLhsl(282, 70%, 36%)
HSVhsv(282, 82%, 62%)
CMYKcmyk(24.1%, 82.3%, 0%, 38%)
CIE-LABlab(32.46, 57.23, -50.78)
CIE-LCHlch(32.46, 76.51, 318.42°)
OKLaboklab(44.37% 0.1347 -0.1437)
OKLCHoklch(44.37% 0.197 313.1)
XYZxyz(14.3314, 7.2927, 32.9938)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C9E #429E1C
analogous
#371C9E #781C9E #9E1C83
triadic
#781C9E #9E781C #1C9E78
tetradic
#781C9E #9E371C #429E1C #1C839E
square
#781C9E #9E371C #429E1C #1C839E
split-complementary
#781C9E #839E1C #1C9E37
monochromatic
#290A36 #51136A #781C9E #9F25D2 #B754E1

Accessibility & contrast

On white

8.54
#781C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#781C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C9E
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C9E#FFFFFF#000000##FFFFFF
##781C9E1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#034E9B
Tritanopia (blue-blind)
#743D5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781c9e;
/* rgb */ color: rgb(120, 28, 158);
/* oklch */ color: oklch(44.4% 0.197 313.1);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#781c9e',
    950: '#000000',
  },
}
SCSS
$custom: #781c9e;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781c9e",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 282.462,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44372,
    "c": 0.19697,
    "h": 313.1
  },
  "luminance": 0.07292
}

Semantic roles & 50–950 ramp

primary
#781C9E
secondary
#73C452
accent
#ED3B6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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