#781D9E#781D9E

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

Color values

HEX#781D9E
RGBrgb(120, 29, 158)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 82%, 62%)
CMYKcmyk(24.1%, 81.6%, 0%, 38%)
CIE-LABlab(32.57, 56.92, -50.60)
CIE-LCHlch(32.57, 76.16, 318.36°)
OKLaboklab(44.45% 0.1339 -0.1432)
OKLCHoklch(44.45% 0.196 313.1)
XYZxyz(14.3555, 7.3409, 33.0018)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D9E #439E1D
analogous
#381D9E #781D9E #9E1D84
triadic
#781D9E #9E781D #1D9E78
tetradic
#781D9E #9E381D #439E1D #1D849E
square
#781D9E #9E381D #439E1D #1D849E
split-complementary
#781D9E #849E1D #1D9E38
monochromatic
#290A37 #51146A #781D9E #9F26D2 #B756E0

Accessibility & contrast

On white

8.51
#781D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#781D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D9E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D9E#FFFFFF#000000##FFFFFF
##781D9E1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#054E9B
Tritanopia (blue-blind)
#743D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781d9e;
/* rgb */ color: rgb(120, 29, 158);
/* oklch */ color: oklch(44.4% 0.196 313.1);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#781d9e',
    950: '#000000',
  },
}
SCSS
$custom: #781d9e;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#781d9e",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 282.326,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44447,
    "c": 0.19609,
    "h": 313.1
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#781D9E
secondary
#74C354
accent
#EC3C70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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