#781C9D#781C9D

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

Color values

HEX#781C9D
RGBrgb(120, 28, 157)
HSLhsl(283, 70%, 36%)
HSVhsv(283, 82%, 62%)
CMYKcmyk(23.6%, 82.2%, 0%, 38.4%)
CIE-LABlab(32.39, 57.02, -50.29)
CIE-LCHlch(32.39, 76.03, 318.59°)
OKLaboklab(44.3% 0.1349 -0.1423)
OKLCHoklch(44.3% 0.196 313.5)
XYZxyz(14.2457, 7.2584, 32.5423)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C9D #419D1C
analogous
#381C9D #781C9D #9D1C82
triadic
#781C9D #9D781C #1C9D78
tetradic
#781C9D #9D381C #419D1C #1C829D
square
#781C9D #9D381C #419D1C #1C829D
split-complementary
#781C9D #829D1C #1C9D38
monochromatic
#290935 #501369 #781C9D #A025D1 #B853E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781C9D#FFFFFF#000000##FFFFFF
##781C9D1.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)
#0048A0
Deuteranopia (green-blind)
#074E9A
Tritanopia (blue-blind)
#743C5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781c9d;
/* rgb */ color: rgb(120, 28, 157);
/* oklch */ color: oklch(44.3% 0.196 313.5);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#781c9d',
    950: '#000000',
  },
}
SCSS
$custom: #781c9d;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781c9d",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 282.791,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44295,
    "c": 0.19609,
    "h": 313.5
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

primary
#781C9D
secondary
#72C351
accent
#ED3B6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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