#781D82#781D82

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

Color values

HEX#781D82
RGBrgb(120, 29, 130)
HSLhsl(294, 64%, 31%)
HSVhsv(294, 78%, 51%)
CMYKcmyk(7.7%, 77.7%, 0%, 49%)
CIE-LABlab(30.60, 51.44, -36.52)
CIE-LCHlch(30.60, 63.08, 324.63°)
OKLaboklab(42.44% 0.1381 -0.1019)
OKLCHoklch(42.44% 0.172 323.6)
XYZxyz(12.2140, 6.4843, 21.7230)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D82 #27821D
analogous
#451D82 #781D82 #821D59
triadic
#781D82 #82781D #1D8278
tetradic
#781D82 #82451D #27821D #1D5982
square
#781D82 #82451D #27821D #1D5982
split-complementary
#781D82 #59821D #1D8245
monochromatic
#1C071E #4A1250 #781D82 #A628B4 #C744D5

Accessibility & contrast

On white

9.14
#781D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D82
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D82#FFFFFF#000000##FFFFFF
##781D821.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#2F4C80
Tritanopia (blue-blind)
#7A304F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781d82;
/* rgb */ color: rgb(120, 29, 130);
/* oklch */ color: oklch(42.4% 0.172 323.6);
Tailwind
colors: {
  custom: {
    50: '#a264a7',
    500: '#781d82',
    950: '#000000',
  },
}
SCSS
$custom: #781d82;
$custom-light: #a264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781d82",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 294.059,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42435,
    "c": 0.17165,
    "h": 323.6
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#781D82
secondary
#51B546
accent
#E74152
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D82

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

Preview Lab → · Contrast checker → · Palette generator →

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