#781D9F#781D9F

#781D9F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.197 H 312.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#781D9F
RGBrgb(120, 29, 159)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 82%, 62%)
CMYKcmyk(24.5%, 81.8%, 0%, 37.6%)
CIE-LABlab(32.65, 57.12, -51.09)
CIE-LCHlch(32.65, 76.64, 318.19°)
OKLaboklab(44.52% 0.1337 -0.1447)
OKLCHoklch(44.52% 0.197 312.7)
XYZxyz(14.4420, 7.3754, 33.4570)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D9F #449F1D
analogous
#371D9F #781D9F #9F1D85
triadic
#781D9F #9F781D #1D9F78
tetradic
#781D9F #9F371D #449F1D #1D859F
square
#781D9F #9F371D #449F1D #1D859F
split-complementary
#781D9F #859F1D #1D9F37
monochromatic
#2A0A37 #51146B #781D9F #9F26D3 #B756E0

Accessibility & contrast

On white

8.48
#781D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D9F
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D9F#FFFFFF#000000##FFFFFF
##781D9F1.008.482.478.48
#FFFFFF8.481.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#024F9C
Tritanopia (blue-blind)
#733E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #781d9f;
/* rgb */ color: rgb(120, 29, 159);
/* oklch */ color: oklch(44.5% 0.197 312.7);
Tailwind
colors: {
  custom: {
    50: '#a466bc',
    500: '#781d9f',
    950: '#000000',
  },
}
SCSS
$custom: #781d9f;
$custom-light: #a466bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781d9f",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 282,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44524,
    "c": 0.19698,
    "h": 312.7
  },
  "luminance": 0.07375
}

Semantic roles & 50–950 ramp

primary
#781D9F
secondary
#76C454
accent
#EC3C71
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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