#781A9E#781A9E

#781A9E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.199 H 313.2°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#781A9E
RGBrgb(120, 26, 158)
HSLhsl(283, 72%, 36%)
HSVhsv(283, 84%, 62%)
CMYKcmyk(24.1%, 83.5%, 0%, 38%)
CIE-LABlab(32.26, 57.82, -51.11)
CIE-LCHlch(32.26, 77.17, 318.53°)
OKLaboklab(44.23% 0.1361 -0.1447)
OKLCHoklch(44.23% 0.199 313.2)
XYZxyz(14.2856, 7.2009, 32.9785)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A9E #409E1A
analogous
#361A9E #781A9E #9E1A82
triadic
#781A9E #9E781A #1A9E78
tetradic
#781A9E #9E361A #409E1A #1A829E
square
#781A9E #9E361A #409E1A #1A829E
split-complementary
#781A9E #829E1A #1A9E36
monochromatic
#280935 #501169 #781A9E #A023D3 #B850E2

Accessibility & contrast

On white

8.61
#781A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#781A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A9E
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A9E#FFFFFF#000000##FFFFFF
##781A9E1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004E9B
Tritanopia (blue-blind)
#743C5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781a9e;
/* rgb */ color: rgb(120, 26, 158);
/* oklch */ color: oklch(44.2% 0.199 313.2);
Tailwind
colors: {
  custom: {
    50: '#a464bb',
    500: '#781a9e',
    950: '#000000',
  },
}
SCSS
$custom: #781a9e;
$custom-light: #a464bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781a9e",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 282.727,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4423,
    "c": 0.19866,
    "h": 313.2
  },
  "luminance": 0.072
}

Semantic roles & 50–950 ramp

primary
#781A9E
secondary
#71C54F
accent
#EE396D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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