#781E9A#781E9A

#781E9A is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.192 H 314.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#781E9A
RGBrgb(120, 30, 154)
HSLhsl(284, 67%, 36%)
HSVhsv(284, 81%, 60%)
CMYKcmyk(22.1%, 80.5%, 0%, 39.6%)
CIE-LABlab(32.38, 55.78, -48.48)
CIE-LCHlch(32.38, 73.90, 319.01°)
OKLaboklab(44.22% 0.134 -0.137)
OKLCHoklch(44.22% 0.192 314.4)
XYZxyz(14.0417, 7.2552, 31.2263)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E9A #409A1E
analogous
#3A1E9A #781E9A #9A1E7E
triadic
#781E9A #9A781E #1E9A78
tetradic
#781E9A #9A3A1E #409A1E #1E7E9A
square
#781E9A #9A3A1E #409A1E #1E7E9A
split-complementary
#781E9A #7E9A1E #1E9A3A
monochromatic
#280A34 #501467 #781E9A #A028CD #B855DE

Accessibility & contrast

On white

8.57
#781E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#781E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E9A
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E9A#FFFFFF#000000##FFFFFF
##781E9A1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#134E97
Tritanopia (blue-blind)
#753C5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781e9a;
/* rgb */ color: rgb(120, 30, 154);
/* oklch */ color: oklch(44.2% 0.192 314.4);
Tailwind
colors: {
  custom: {
    50: '#a366b8',
    500: '#781e9a',
    950: '#000000',
  },
}
SCSS
$custom: #781e9a;
$custom-light: #a366b8;
$custom-dark: #000000;
JSON
{
  "hex": "#781e9a",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 283.548,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4422,
    "c": 0.19161,
    "h": 314.4
  },
  "luminance": 0.07255
}

Semantic roles & 50–950 ramp

primary
#781E9A
secondary
#71C153
accent
#EA3E6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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