#781D9C#781D9C

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

Color values

HEX#781D9C
RGBrgb(120, 29, 156)
HSLhsl(283, 69%, 36%)
HSVhsv(283, 81%, 61%)
CMYKcmyk(23.1%, 81.4%, 0%, 38.8%)
CIE-LABlab(32.42, 56.51, -49.63)
CIE-LCHlch(32.42, 75.21, 318.71°)
OKLaboklab(44.29% 0.1343 -0.1404)
OKLCHoklch(44.29% 0.194 313.7)
XYZxyz(14.1848, 7.2726, 32.1026)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D9C #419C1D
analogous
#391D9C #781D9C #9C1D81
triadic
#781D9C #9C781D #1D9C78
tetradic
#781D9C #9C391D #419C1D #1D819C
square
#781D9C #9C391D #419C1D #1D819C
split-complementary
#781D9C #819C1D #1D9C39
monochromatic
#290A35 #501368 #781D9C #A027D0 #B854DF

Accessibility & contrast

On white

8.56
#781D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D9C
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D9C#FFFFFF#000000##FFFFFF
##781D9C1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#0C4E99
Tritanopia (blue-blind)
#743C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781d9c;
/* rgb */ color: rgb(120, 29, 156);
/* oklch */ color: oklch(44.3% 0.194 313.7);
Tailwind
colors: {
  custom: {
    50: '#a365ba',
    500: '#781d9c',
    950: '#000000',
  },
}
SCSS
$custom: #781d9c;
$custom-light: #a365ba;
$custom-dark: #000000;
JSON
{
  "hex": "#781d9c",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 282.992,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.1943,
    "h": 313.7
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#781D9C
secondary
#72C252
accent
#EB3C6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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