#781F9A#781F9A

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

Color values

HEX#781F9A
RGBrgb(120, 31, 154)
HSLhsl(283, 66%, 36%)
HSVhsv(283, 80%, 60%)
CMYKcmyk(22.1%, 79.9%, 0%, 39.6%)
CIE-LABlab(32.49, 55.45, -48.29)
CIE-LCHlch(32.49, 73.53, 318.95°)
OKLaboklab(44.3% 0.1331 -0.1365)
OKLCHoklch(44.3% 0.191 314.3)
XYZxyz(14.0675, 7.3066, 31.2349)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F9A #419A1F
analogous
#3B1F9A #781F9A #9A1F7F
triadic
#781F9A #9A781F #1F9A78
tetradic
#781F9A #9A3B1F #419A1F #1F7F9A
square
#781F9A #9A3B1F #419A1F #1F7F9A
split-complementary
#781F9A #7F9A1F #1F9A3B
monochromatic
#290A34 #501567 #781F9A #A029CD #B856DD

Accessibility & contrast

On white

8.53
#781F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#781F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F9A
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F9A#FFFFFF#000000##FFFFFF
##781F9A1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#144E97
Tritanopia (blue-blind)
#753C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #781f9a;
/* rgb */ color: rgb(120, 31, 154);
/* oklch */ color: oklch(44.3% 0.191 314.3);
Tailwind
colors: {
  custom: {
    50: '#a366b8',
    500: '#781f9a',
    950: '#000000',
  },
}
SCSS
$custom: #781f9a;
$custom-light: #a366b8;
$custom-dark: #000000;
JSON
{
  "hex": "#781f9a",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 283.415,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.443,
    "c": 0.19065,
    "h": 314.3
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#781F9A
secondary
#72C154
accent
#E93E6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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