#781F86#781F86

#781F86 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.173 H 321.8°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#781F86
RGBrgb(120, 31, 134)
HSLhsl(292, 62%, 32%)
HSVhsv(292, 77%, 53%)
CMYKcmyk(10.4%, 76.9%, 0%, 47.5%)
CIE-LABlab(31.10, 51.50, -38.21)
CIE-LCHlch(31.10, 64.13, 323.43°)
OKLaboklab(42.87% 0.1359 -0.1069)
OKLCHoklch(42.87% 0.173 321.8)
XYZxyz(12.5383, 6.6950, 23.1815)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F86 #2D861F
analogous
#451F86 #781F86 #861F60
triadic
#781F86 #86781F #1F8678
tetradic
#781F86 #86451F #2D861F #1F6086
square
#781F86 #86451F #2D861F #1F6086
split-complementary
#781F86 #60861F #1F8645
monochromatic
#1F0823 #4B1454 #781F86 #A52AB8 #C24AD5

Accessibility & contrast

On white

8.98
#781F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#781F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F86
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F86#FFFFFF#000000##FFFFFF
##781F861.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#2D4C84
Tritanopia (blue-blind)
#793351
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f86;
/* rgb */ color: rgb(120, 31, 134);
/* oklch */ color: oklch(42.9% 0.173 321.8);
Tailwind
colors: {
  custom: {
    50: '#a265aa',
    500: '#781f86',
    950: '#000000',
  },
}
SCSS
$custom: #781f86;
$custom-light: #a265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781f86",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 291.845,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.17293,
    "h": 321.8
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#781F86
secondary
#58B849
accent
#E54258
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F86

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

Preview Lab → · Contrast checker → · Palette generator →

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