#781E82#781E82

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

Color values

HEX#781E82
RGBrgb(120, 30, 130)
HSLhsl(294, 63%, 31%)
HSVhsv(294, 77%, 51%)
CMYKcmyk(7.7%, 76.9%, 0%, 49%)
CIE-LABlab(30.72, 51.10, -36.32)
CIE-LCHlch(30.72, 62.69, 324.59°)
OKLaboklab(42.52% 0.1372 -0.1014)
OKLCHoklch(42.52% 0.171 323.5)
XYZxyz(12.2389, 6.5341, 21.7313)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E82 #28821E
analogous
#461E82 #781E82 #821E5A
triadic
#781E82 #82781E #1E8278
tetradic
#781E82 #82461E #28821E #1E5A82
square
#781E82 #82461E #28821E #1E5A82
split-complementary
#781E82 #5A821E #1E8246
monochromatic
#1C071F #4A1350 #781E82 #A629B4 #C646D4

Accessibility & contrast

On white

9.10
#781E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#781E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E82
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E82#FFFFFF#000000##FFFFFF
##781E821.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#304C80
Tritanopia (blue-blind)
#7A314F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781e82;
/* rgb */ color: rgb(120, 30, 130);
/* oklch */ color: oklch(42.5% 0.171 323.5);
Tailwind
colors: {
  custom: {
    50: '#a264a7',
    500: '#781e82',
    950: '#000000',
  },
}
SCSS
$custom: #781e82;
$custom-light: #a264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781e82",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 294,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4252,
    "c": 0.17057,
    "h": 323.5
  },
  "luminance": 0.06533
}

Semantic roles & 50–950 ramp

primary
#781E82
secondary
#52B547
accent
#E64253
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781E82

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

Preview Lab → · Contrast checker → · Palette generator →

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