#781E8D#781E8D

#781E8D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.180 H 319.1°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#781E8D
RGBrgb(120, 30, 141)
HSLhsl(289, 65%, 34%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.9%, 78.7%, 0%, 44.7%)
CIE-LABlab(31.45, 53.19, -41.99)
CIE-LCHlch(31.45, 67.77, 321.71°)
OKLaboklab(43.27% 0.1361 -0.118)
OKLCHoklch(43.27% 0.18 319.1)
XYZxyz(13.0171, 6.8453, 25.8298)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8D #338D1E
analogous
#401E8D #781E8D #8D1E6A
triadic
#781E8D #8D781E #1E8D78
tetradic
#781E8D #8D401E #338D1E #1E6A8D
square
#781E8D #8D401E #338D1E #1E6A8D
split-complementary
#781E8D #6A8D1E #1E8D40
monochromatic
#220928 #4D135B #781E8D #A329BF #BE4CD9

Accessibility & contrast

On white

8.86
#781E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#781E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E8D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E8D#FFFFFF#000000##FFFFFF
##781E8D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#783655
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8d;
/* rgb */ color: rgb(120, 30, 141);
/* oklch */ color: oklch(43.3% 0.180 319.1);
Tailwind
colors: {
  custom: {
    50: '#a365af',
    500: '#781e8d',
    950: '#000000',
  },
}
SCSS
$custom: #781e8d;
$custom-light: #a365af;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8d",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 288.649,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43271,
    "c": 0.1801,
    "h": 319.1
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#781E8D
secondary
#60BC4B
accent
#E84060
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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