#781FA1#781FA1

#781FA1 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.8% C 0.197 H 312.0°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#781FA1
RGBrgb(120, 31, 161)
HSLhsl(281, 68%, 38%)
HSVhsv(281, 81%, 63%)
CMYKcmyk(25.5%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.02, 56.90, -51.69)
CIE-LCHlch(33.02, 76.87, 317.74°)
OKLaboklab(44.83% 0.1317 -0.1465)
OKLCHoklch(44.83% 0.197 312)
XYZxyz(14.6675, 7.5467, 34.3953)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781FA1 #48A11F
analogous
#371FA1 #781FA1 #A11F89
triadic
#781FA1 #A1781F #1FA178
tetradic
#781FA1 #A1371F #48A11F #1F89A1
square
#781FA1 #A1371F #48A11F #1F89A1
split-complementary
#781FA1 #89A11F #1FA137
monochromatic
#2B0B3A #52156E #781FA1 #9E29D4 #B65BDF

Accessibility & contrast

On white

8.37
#781FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#781FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781FA1
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781FA1#FFFFFF#000000##FFFFFF
##781FA11.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#734061
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781fa1;
/* rgb */ color: rgb(120, 31, 161);
/* oklch */ color: oklch(44.8% 0.197 312.0);
Tailwind
colors: {
  custom: {
    50: '#a466be',
    500: '#781fa1',
    950: '#000000',
  },
}
SCSS
$custom: #781fa1;
$custom-light: #a466be;
$custom-dark: #000000;
JSON
{
  "hex": "#781fa1",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 281.077,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44834,
    "c": 0.19695,
    "h": 312
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#781FA1
secondary
#7AC458
accent
#EB3D74
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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