#781D9B#781D9B

#781D9B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.193 H 314.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#781D9B
RGBrgb(120, 29, 155)
HSLhsl(283, 68%, 36%)
HSVhsv(283, 81%, 61%)
CMYKcmyk(22.6%, 81.3%, 0%, 39.2%)
CIE-LABlab(32.34, 56.31, -49.14)
CIE-LCHlch(32.34, 74.74, 318.89°)
OKLaboklab(44.22% 0.1345 -0.139)
OKLCHoklch(44.22% 0.193 314.1)
XYZxyz(14.1005, 7.2388, 31.6585)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D9B #409B1D
analogous
#391D9B #781D9B #9B1D7F
triadic
#781D9B #9B781D #1D9B78
tetradic
#781D9B #9B391D #409B1D #1D7F9B
square
#781D9B #9B391D #409B1D #1D7F9B
split-complementary
#781D9B #7F9B1D #1D9B39
monochromatic
#280A34 #501367 #781D9B #A027CF #B853DF

Accessibility & contrast

On white

8.58
#781D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D9B
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D9B#FFFFFF#000000##FFFFFF
##781D9B1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#0F4E98
Tritanopia (blue-blind)
#753C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781d9b;
/* rgb */ color: rgb(120, 29, 155);
/* oklch */ color: oklch(44.2% 0.193 314.1);
Tailwind
colors: {
  custom: {
    50: '#a365b9',
    500: '#781d9b',
    950: '#000000',
  },
}
SCSS
$custom: #781d9b;
$custom-light: #a365b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781d9b",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 283.333,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44218,
    "c": 0.19342,
    "h": 314.1
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#781D9B
secondary
#71C252
accent
#EB3C6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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