#781A9A#781A9A

#781A9A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.195 H 314.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#781A9A
RGBrgb(120, 26, 154)
HSLhsl(284, 71%, 35%)
HSVhsv(284, 83%, 60%)
CMYKcmyk(22.1%, 83.1%, 0%, 39.6%)
CIE-LABlab(31.96, 57.02, -49.16)
CIE-LCHlch(31.96, 75.29, 319.23°)
OKLaboklab(43.92% 0.137 -0.139)
OKLCHoklch(43.92% 0.195 314.6)
XYZxyz(13.9469, 7.0655, 31.1947)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A9A #3C9A1A
analogous
#381A9A #781A9A #9A1A7C
triadic
#781A9A #9A781A #1A9A78
tetradic
#781A9A #9A381A #3C9A1A #1A7C9A
square
#781A9A #9A381A #3C9A1A #1A7C9A
split-complementary
#781A9A #7C9A1A #1A9A38
monochromatic
#260831 #4F1166 #781A9A #A123CE #BA4DE1

Accessibility & contrast

On white

8.70
#781A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#781A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A9A
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A9A#FFFFFF#000000##FFFFFF
##781A9A1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#0E4D97
Tritanopia (blue-blind)
#753A5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781a9a;
/* rgb */ color: rgb(120, 26, 154);
/* oklch */ color: oklch(43.9% 0.195 314.6);
Tailwind
colors: {
  custom: {
    50: '#a364b9',
    500: '#781a9a',
    950: '#000000',
  },
}
SCSS
$custom: #781a9a;
$custom-light: #a364b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781a9a",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 284.063,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.19517,
    "h": 314.6
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#781A9A
secondary
#6CC34D
accent
#EE3A6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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