#781EA1#781EA1

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

Color values

HEX#781EA1
RGBrgb(120, 30, 161)
HSLhsl(281, 69%, 37%)
HSVhsv(281, 81%, 63%)
CMYKcmyk(25.5%, 81.4%, 0%, 36.9%)
CIE-LABlab(32.91, 57.22, -51.87)
CIE-LCHlch(32.91, 77.23, 317.81°)
OKLaboklab(44.76% 0.1325 -0.147)
OKLCHoklch(44.76% 0.198 312)
XYZxyz(14.6418, 7.4952, 34.3867)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781EA1 #47A11E
analogous
#361EA1 #781EA1 #A11E89
triadic
#781EA1 #A1781E #1EA178
tetradic
#781EA1 #A1361E #47A11E #1E89A1
square
#781EA1 #A1361E #47A11E #1E89A1
split-complementary
#781EA1 #89A11E #1EA136
monochromatic
#2B0B3A #52146D #781EA1 #9E28D5 #B659E0

Accessibility & contrast

On white

8.40
#781EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#781EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781EA1
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781EA1#FFFFFF#000000##FFFFFF
##781EA11.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#733F60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781ea1;
/* rgb */ color: rgb(120, 30, 161);
/* oklch */ color: oklch(44.8% 0.198 312.0);
Tailwind
colors: {
  custom: {
    50: '#a466be',
    500: '#781ea1',
    950: '#000000',
  },
}
SCSS
$custom: #781ea1;
$custom-light: #a466be;
$custom-dark: #000000;
JSON
{
  "hex": "#781ea1",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 281.221,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44756,
    "c": 0.19787,
    "h": 312
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#781EA1
secondary
#79C457
accent
#EB3C73
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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