#781E8B#781E8B

#781E8B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.178 H 319.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#781E8B
RGBrgb(120, 30, 139)
HSLhsl(290, 64%, 33%)
HSVhsv(290, 78%, 55%)
CMYKcmyk(13.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(31.32, 52.80, -40.98)
CIE-LCHlch(31.32, 66.84, 322.19°)
OKLaboklab(43.13% 0.1363 -0.115)
OKLCHoklch(43.13% 0.178 319.9)
XYZxyz(12.8696, 6.7864, 25.0531)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8B #318B1E
analogous
#411E8B #781E8B #8B1E67
triadic
#781E8B #8B781E #1E8B78
tetradic
#781E8B #8B411E #318B1E #1E678B
square
#781E8B #8B411E #318B1E #1E678B
split-complementary
#781E8B #678B1E #1E8B41
monochromatic
#210826 #4D1359 #781E8B #A329BD #C04BD8

Accessibility & contrast

On white

8.91
#781E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#781E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E8B
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E8B#FFFFFF#000000##FFFFFF
##781E8B1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#284D89
Tritanopia (blue-blind)
#783554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8b;
/* rgb */ color: rgb(120, 30, 139);
/* oklch */ color: oklch(43.1% 0.178 319.9);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#781e8b',
    950: '#000000',
  },
}
SCSS
$custom: #781e8b;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8b",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 289.541,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43131,
    "c": 0.17836,
    "h": 319.9
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#781E8B
secondary
#5EBB4A
accent
#E7405D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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