#781E9E#781E9E

#781E9E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.195 H 313.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#781E9E
RGBrgb(120, 30, 158)
HSLhsl(282, 68%, 37%)
HSVhsv(282, 81%, 62%)
CMYKcmyk(24.1%, 81%, 0%, 38%)
CIE-LABlab(32.68, 56.60, -50.42)
CIE-LCHlch(32.68, 75.80, 318.30°)
OKLaboklab(44.52% 0.1331 -0.1427)
OKLCHoklch(44.52% 0.195 313)
XYZxyz(14.3804, 7.3907, 33.0101)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E9E #449E1E
analogous
#381E9E #781E9E #9E1E84
triadic
#781E9E #9E781E #1E9E78
tetradic
#781E9E #9E381E #449E1E #1E849E
square
#781E9E #9E381E #449E1E #1E849E
split-complementary
#781E9E #849E1E #1E9E38
monochromatic
#2A0A37 #51146B #781E9E #9F28D1 #B757DF

Accessibility & contrast

On white

8.47
#781E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#781E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E9E
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E9E#FFFFFF#000000##FFFFFF
##781E9E1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#074F9B
Tritanopia (blue-blind)
#743E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781e9e;
/* rgb */ color: rgb(120, 30, 158);
/* oklch */ color: oklch(44.5% 0.195 313.0);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#781e9e',
    950: '#000000',
  },
}
SCSS
$custom: #781e9e;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781e9e",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 282.188,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44524,
    "c": 0.19517,
    "h": 313
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

primary
#781E9E
secondary
#76C355
accent
#EB3D71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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