#781F96#781F96

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

Color values

HEX#781F96
RGBrgb(120, 31, 150)
HSLhsl(285, 66%, 35%)
HSVhsv(285, 79%, 59%)
CMYKcmyk(20%, 79.3%, 0%, 41.2%)
CIE-LABlab(32.20, 54.64, -46.32)
CIE-LCHlch(32.20, 71.63, 319.71°)
OKLaboklab(44% 0.1339 -0.1307)
OKLCHoklch(44% 0.187 315.7)
XYZxyz(13.7399, 7.1756, 29.5095)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F96 #3D961F
analogous
#3C1F96 #781F96 #961F78
triadic
#781F96 #96781F #1F9678
tetradic
#781F96 #963C1F #3D961F #1F7896
square
#781F96 #963C1F #3D961F #1F7896
split-complementary
#781F96 #78961F #1F963C
monochromatic
#270A31 #4F1563 #781F96 #A129C9 #B954DC

Accessibility & contrast

On white

8.62
#781F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F96
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F96#FFFFFF#000000##FFFFFF
##781F961.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#1B4E93
Tritanopia (blue-blind)
#763B5A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781f96;
/* rgb */ color: rgb(120, 31, 150);
/* oklch */ color: oklch(44.0% 0.187 315.7);
Tailwind
colors: {
  custom: {
    50: '#a366b6',
    500: '#781f96',
    950: '#000000',
  },
}
SCSS
$custom: #781f96;
$custom-light: #a366b6;
$custom-dark: #000000;
JSON
{
  "hex": "#781f96",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 284.874,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.18706,
    "h": 315.7
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#781F96
secondary
#6DBF52
accent
#E93F6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F96

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

Preview Lab → · Contrast checker → · Palette generator →

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