#781986#781986

#781986 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.179 H 322.1°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#781986
RGBrgb(120, 25, 134)
HSLhsl(292, 69%, 31%)
HSVhsv(292, 81%, 53%)
CMYKcmyk(10.4%, 81.3%, 0%, 47.5%)
CIE-LABlab(30.42, 53.45, -39.30)
CIE-LCHlch(30.42, 66.35, 323.68°)
OKLaboklab(42.39% 0.1412 -0.11)
OKLCHoklch(42.39% 0.179 322.1)
XYZxyz(12.3960, 6.4103, 23.1340)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781986 #278619
analogous
#411986 #781986 #86195D
triadic
#781986 #867819 #198678
tetradic
#781986 #864119 #278619 #195D86
square
#781986 #864119 #278619 #195D86
split-complementary
#781986 #5D8619 #198641
monochromatic
#1C061F #4A0F52 #781986 #A623BA #C73EDB

Accessibility & contrast

On white

9.20
#781986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781986
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781986#FFFFFF#000000##FFFFFF
##7819861.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#2A4B84
Tritanopia (blue-blind)
#793050
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781986;
/* rgb */ color: rgb(120, 25, 134);
/* oklch */ color: oklch(42.4% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#a363aa',
    500: '#781986',
    950: '#000000',
  },
}
SCSS
$custom: #781986;
$custom-light: #a363aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781986",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 292.294,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42393,
    "c": 0.179,
    "h": 322.1
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#781986
secondary
#51BA41
accent
#EB3C53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781986

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

Preview Lab → · Contrast checker → · Palette generator →

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