#781E9B#781E9B

#781E9B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.193 H 314.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#781E9B
RGBrgb(120, 30, 155)
HSLhsl(283, 68%, 36%)
HSVhsv(283, 81%, 61%)
CMYKcmyk(22.6%, 80.6%, 0%, 39.2%)
CIE-LABlab(32.46, 55.99, -48.97)
CIE-LCHlch(32.46, 74.38, 318.83°)
OKLaboklab(44.3% 0.1338 -0.1384)
OKLCHoklch(44.3% 0.193 314)
XYZxyz(14.1254, 7.2887, 31.6668)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E9B #419B1E
analogous
#3A1E9B #781E9B #9B1E80
triadic
#781E9B #9B781E #1E9B78
tetradic
#781E9B #9B3A1E #419B1E #1E809B
square
#781E9B #9B3A1E #419B1E #1E809B
split-complementary
#781E9B #809B1E #1E9B3A
monochromatic
#290A34 #501468 #781E9B #A028CE #B855DE

Accessibility & contrast

On white

8.54
#781E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#781E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E9B
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E9B#FFFFFF#000000##FFFFFF
##781E9B1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#114E98
Tritanopia (blue-blind)
#743C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781e9b;
/* rgb */ color: rgb(120, 30, 155);
/* oklch */ color: oklch(44.3% 0.193 314.0);
Tailwind
colors: {
  custom: {
    50: '#a366b9',
    500: '#781e9b',
    950: '#000000',
  },
}
SCSS
$custom: #781e9b;
$custom-light: #a366b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781e9b",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 283.2,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44295,
    "c": 0.1925,
    "h": 314
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#781E9B
secondary
#72C253
accent
#EA3D6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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