#781A97#781A97

#781A97 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.193 H 315.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#781A97
RGBrgb(120, 26, 151)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 59%)
CMYKcmyk(20.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(31.73, 56.42, -47.70)
CIE-LCHlch(31.73, 73.88, 319.79°)
OKLaboklab(43.69% 0.1377 -0.1347)
OKLCHoklch(43.69% 0.193 315.6)
XYZxyz(13.7001, 6.9668, 29.8952)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A97 #39971A
analogous
#3A1A97 #781A97 #971A78
triadic
#781A97 #97781A #1A9778
tetradic
#781A97 #973A1A #39971A #1A7897
square
#781A97 #973A1A #39971A #1A7897
split-complementary
#781A97 #78971A #1A973A
monochromatic
#25082F #4F1163 #781A97 #A123CB #BB4BE0

Accessibility & contrast

On white

8.77
#781A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#781A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A97
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A97#FFFFFF#000000##FFFFFF
##781A971.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#154D94
Tritanopia (blue-blind)
#76395A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781a97;
/* rgb */ color: rgb(120, 26, 151);
/* oklch */ color: oklch(43.7% 0.193 315.6);
Tailwind
colors: {
  custom: {
    50: '#a364b6',
    500: '#781a97',
    950: '#000000',
  },
}
SCSS
$custom: #781a97;
$custom-light: #a364b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781a97",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 285.12,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43694,
    "c": 0.19258,
    "h": 315.6
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#781A97
secondary
#68C24B
accent
#ED3A67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781A97

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

Preview Lab → · Contrast checker → · Palette generator →

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