#781987#781987

#781987 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.180 H 321.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#781987
RGBrgb(120, 25, 135)
HSLhsl(292, 69%, 31%)
HSVhsv(292, 81%, 53%)
CMYKcmyk(11.1%, 81.5%, 0%, 47.1%)
CIE-LABlab(30.49, 53.64, -39.81)
CIE-LCHlch(30.49, 66.80, 323.42°)
OKLaboklab(42.46% 0.1411 -0.1116)
OKLCHoklch(42.46% 0.18 321.7)
XYZxyz(12.4661, 6.4383, 23.5031)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781987 #288719
analogous
#411987 #781987 #87195F
triadic
#781987 #877819 #198778
tetradic
#781987 #874119 #288719 #195F87
square
#781987 #874119 #288719 #195F87
split-complementary
#781987 #5F8719 #198741
monochromatic
#1C0620 #4A0F53 #781987 #A623BB #C63FDB

Accessibility & contrast

On white

9.18
#781987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781987
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781987#FFFFFF#000000##FFFFFF
##7819871.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781987;
/* rgb */ color: rgb(120, 25, 135);
/* oklch */ color: oklch(42.5% 0.180 321.7);
Tailwind
colors: {
  custom: {
    50: '#a363aa',
    500: '#781987',
    950: '#000000',
  },
}
SCSS
$custom: #781987;
$custom-light: #a363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781987",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 291.818,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42462,
    "c": 0.17984,
    "h": 321.7
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#781987
secondary
#52BA41
accent
#EC3C54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781987

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

Preview Lab → · Contrast checker → · Palette generator →

#781987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva