#781E86#781E86

#781E86 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.174 H 321.9°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#781E86
RGBrgb(120, 30, 134)
HSLhsl(292, 63%, 32%)
HSVhsv(292, 78%, 53%)
CMYKcmyk(10.4%, 77.6%, 0%, 47.5%)
CIE-LABlab(30.98, 51.85, -38.41)
CIE-LCHlch(30.98, 64.52, 323.47°)
OKLaboklab(42.79% 0.1369 -0.1075)
OKLCHoklch(42.79% 0.174 321.9)
XYZxyz(12.5126, 6.6436, 23.1729)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E86 #2C861E
analogous
#441E86 #781E86 #861E60
triadic
#781E86 #86781E #1E8678
tetradic
#781E86 #86441E #2C861E #1E6086
square
#781E86 #86441E #2C861E #1E6086
split-complementary
#781E86 #60861E #1E8644
monochromatic
#1E0822 #4B1354 #781E86 #A529B8 #C348D6

Accessibility & contrast

On white

9.02
#781E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E86
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E86#FFFFFF#000000##FFFFFF
##781E861.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.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: #781e86;
/* rgb */ color: rgb(120, 30, 134);
/* oklch */ color: oklch(42.8% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#a265aa',
    500: '#781e86',
    950: '#000000',
  },
}
SCSS
$custom: #781e86;
$custom-light: #a265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781e86",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 134
  },
  "hsl": {
    "h": 291.923,
    "s": 63.415,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42787,
    "c": 0.17402,
    "h": 321.9
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#781E86
secondary
#57B847
accent
#E64158
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781E86

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

Preview Lab → · Contrast checker → · Palette generator →

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