#781F95#781F95

#781F95 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.186 H 316.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#781F95
RGBrgb(120, 31, 149)
HSLhsl(285, 66%, 35%)
HSVhsv(285, 79%, 58%)
CMYKcmyk(19.5%, 79.2%, 0%, 41.6%)
CIE-LABlab(32.13, 54.44, -45.82)
CIE-LCHlch(32.13, 71.16, 319.91°)
OKLaboklab(43.93% 0.134 -0.1292)
OKLCHoklch(43.93% 0.186 316)
XYZxyz(13.6597, 7.1435, 29.0872)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F95 #3C951F
analogous
#3D1F95 #781F95 #951F77
triadic
#781F95 #95781F #1F9578
tetradic
#781F95 #953D1F #3C951F #1F7795
square
#781F95 #953D1F #3C951F #1F7795
split-complementary
#781F95 #77951F #1F953D
monochromatic
#260A30 #4F1462 #781F95 #A12AC8 #BA53DB

Accessibility & contrast

On white

8.65
#781F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F95
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F95#FFFFFF#000000##FFFFFF
##781F951.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#1D4E92
Tritanopia (blue-blind)
#763A5A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781f95;
/* rgb */ color: rgb(120, 31, 149);
/* oklch */ color: oklch(43.9% 0.186 316.0);
Tailwind
colors: {
  custom: {
    50: '#a366b5',
    500: '#781f95',
    950: '#000000',
  },
}
SCSS
$custom: #781f95;
$custom-light: #a366b5;
$custom-dark: #000000;
JSON
{
  "hex": "#781f95",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 285.254,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43929,
    "c": 0.18617,
    "h": 316
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#781F95
secondary
#6CBF51
accent
#E93F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F95

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

Preview Lab → · Contrast checker → · Palette generator →

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