#781A87#781A87

#781A87 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.179 H 321.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#781A87
RGBrgb(120, 26, 135)
HSLhsl(292, 68%, 32%)
HSVhsv(292, 81%, 53%)
CMYKcmyk(11.1%, 80.7%, 0%, 47.1%)
CIE-LABlab(30.60, 53.34, -39.65)
CIE-LCHlch(30.60, 66.46, 323.38°)
OKLaboklab(42.54% 0.1402 -0.1111)
OKLCHoklch(42.54% 0.179 321.6)
XYZxyz(12.4878, 6.4818, 23.5103)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A87 #29871A
analogous
#421A87 #781A87 #871A60
triadic
#781A87 #87781A #1A8778
tetradic
#781A87 #87421A #29871A #1A6087
square
#781A87 #87421A #29871A #1A6087
split-complementary
#781A87 #60871A #1A8742
monochromatic
#1D0620 #4A1054 #781A87 #A624BA #C541DA

Accessibility & contrast

On white

9.15
#781A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#781A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A87
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A87#FFFFFF#000000##FFFFFF
##781A871.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#294B85
Tritanopia (blue-blind)
#793151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781a87;
/* rgb */ color: rgb(120, 26, 135);
/* oklch */ color: oklch(42.5% 0.179 321.6);
Tailwind
colors: {
  custom: {
    50: '#a363aa',
    500: '#781a87',
    950: '#000000',
  },
}
SCSS
$custom: #781a87;
$custom-light: #a363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781a87",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 291.743,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42536,
    "c": 0.1789,
    "h": 321.6
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#781A87
secondary
#53BA42
accent
#EB3D55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781A87

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

Preview Lab → · Contrast checker → · Palette generator →

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