#781C82#781C82

#781C82 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.173 H 323.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#781C82
RGBrgb(120, 28, 130)
HSLhsl(294, 65%, 31%)
HSVhsv(294, 78%, 51%)
CMYKcmyk(7.7%, 78.5%, 0%, 49%)
CIE-LABlab(30.49, 51.77, -36.70)
CIE-LCHlch(30.49, 63.46, 324.67°)
OKLaboklab(42.35% 0.139 -0.1025)
OKLCHoklch(42.35% 0.173 323.6)
XYZxyz(12.1899, 6.4360, 21.7150)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C82 #26821C
analogous
#451C82 #781C82 #821C59
triadic
#781C82 #82781C #1C8278
tetradic
#781C82 #82451C #26821C #1C5982
square
#781C82 #82451C #26821C #1C5982
split-complementary
#781C82 #59821C #1C8245
monochromatic
#1B061D #4A1150 #781C82 #A627B4 #C842D6

Accessibility & contrast

On white

9.18
#781C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##781C82#FFFFFF#000000##FFFFFF
##781C821.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)
#004185
Deuteranopia (green-blind)
#2F4B80
Tritanopia (blue-blind)
#7A304E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781c82;
/* rgb */ color: rgb(120, 28, 130);
/* oklch */ color: oklch(42.4% 0.173 323.6);
Tailwind
colors: {
  custom: {
    50: '#a264a7',
    500: '#781c82',
    950: '#000000',
  },
}
SCSS
$custom: #781c82;
$custom-light: #a264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781c82",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 294.118,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42353,
    "c": 0.1727,
    "h": 323.6
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#781C82
secondary
#50B544
accent
#E84051
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781C82

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

Preview Lab → · Contrast checker → · Palette generator →

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