#781A9F#781A9F

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

Color values

HEX#781A9F
RGBrgb(120, 26, 159)
HSLhsl(282, 72%, 36%)
HSVhsv(282, 84%, 62%)
CMYKcmyk(24.5%, 83.6%, 0%, 37.6%)
CIE-LABlab(32.34, 58.03, -51.59)
CIE-LCHlch(32.34, 77.64, 318.36°)
OKLaboklab(44.31% 0.1359 -0.1461)
OKLCHoklch(44.31% 0.2 312.9)
XYZxyz(14.3720, 7.2355, 33.4337)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A9F #419F1A
analogous
#361A9F #781A9F #9F1A84
triadic
#781A9F #9F781A #1A9F78
tetradic
#781A9F #9F361A #419F1A #1A849F
square
#781A9F #9F361A #419F1A #1A849F
split-complementary
#781A9F #849F1A #1A9F36
monochromatic
#290936 #50116A #781A9F #A023D4 #B851E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781A9F#FFFFFF#000000##FFFFFF
##781A9F1.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)
#0048A2
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#733D5F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781a9f;
/* rgb */ color: rgb(120, 26, 159);
/* oklch */ color: oklch(44.3% 0.200 312.9);
Tailwind
colors: {
  custom: {
    50: '#a464bc',
    500: '#781a9f',
    950: '#000000',
  },
}
SCSS
$custom: #781a9f;
$custom-light: #a464bc;
$custom-dark: #000000;
JSON
{
  "hex": "#781a9f",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 282.406,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44308,
    "c": 0.19953,
    "h": 312.9
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#781A9F
secondary
#72C550
accent
#EF396E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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