#781E97#781E97

#781E97 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.189 H 315.4°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#781E97
RGBrgb(120, 30, 151)
HSLhsl(285, 67%, 35%)
HSVhsv(285, 80%, 59%)
CMYKcmyk(20.5%, 80.1%, 0%, 40.8%)
CIE-LABlab(32.16, 55.17, -47.00)
CIE-LCHlch(32.16, 72.48, 319.57°)
OKLaboklab(44% 0.1345 -0.1327)
OKLCHoklch(44% 0.189 315.4)
XYZxyz(13.7950, 7.1565, 29.9268)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E97 #3D971E
analogous
#3B1E97 #781E97 #971E79
triadic
#781E97 #97781E #1E9778
tetradic
#781E97 #973B1E #3D971E #1E7997
square
#781E97 #973B1E #3D971E #1E7997
split-complementary
#781E97 #79971E #1E973B
monochromatic
#270A31 #4F1464 #781E97 #A128CA #B953DD

Accessibility & contrast

On white

8.64
#781E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#781E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E97
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E97#FFFFFF#000000##FFFFFF
##781E971.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#194E94
Tritanopia (blue-blind)
#753B5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781e97;
/* rgb */ color: rgb(120, 30, 151);
/* oklch */ color: oklch(44.0% 0.189 315.4);
Tailwind
colors: {
  custom: {
    50: '#a366b6',
    500: '#781e97',
    950: '#000000',
  },
}
SCSS
$custom: #781e97;
$custom-light: #a366b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781e97",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 284.628,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43995,
    "c": 0.18894,
    "h": 315.4
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#781E97
secondary
#6DC051
accent
#EA3E6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781E97

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

Preview Lab → · Contrast checker → · Palette generator →

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