#781A9B#781A9B

#781A9B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.196 H 314.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#781A9B
RGBrgb(120, 26, 155)
HSLhsl(284, 71%, 35%)
HSVhsv(284, 83%, 61%)
CMYKcmyk(22.6%, 83.2%, 0%, 39.2%)
CIE-LABlab(32.03, 57.22, -49.65)
CIE-LCHlch(32.03, 75.76, 319.05°)
OKLaboklab(44% 0.1368 -0.1404)
OKLCHoklch(44% 0.196 314.2)
XYZxyz(14.0305, 7.0989, 31.6351)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A9B #3D9B1A
analogous
#371A9B #781A9B #9B1A7D
triadic
#781A9B #9B781A #1A9B78
tetradic
#781A9B #9B371A #3D9B1A #1A7D9B
square
#781A9B #9B371A #3D9B1A #1A7D9B
split-complementary
#781A9B #7D9B1A #1A9B37
monochromatic
#270832 #4F1167 #781A9B #A123CF #B94EE1

Accessibility & contrast

On white

8.68
#781A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#781A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A9B
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A9B#FFFFFF#000000##FFFFFF
##781A9B1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#0A4D98
Tritanopia (blue-blind)
#753B5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781a9b;
/* rgb */ color: rgb(120, 26, 155);
/* oklch */ color: oklch(44.0% 0.196 314.2);
Tailwind
colors: {
  custom: {
    50: '#a464b9',
    500: '#781a9b',
    950: '#000000',
  },
}
SCSS
$custom: #781a9b;
$custom-light: #a464b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781a9b",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 283.721,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43998,
    "c": 0.19605,
    "h": 314.2
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#781A9B
secondary
#6DC44D
accent
#EE3A6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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