#781A82#781A82

#781A82 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.175 H 323.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#781A82
RGBrgb(120, 26, 130)
HSLhsl(294, 67%, 31%)
HSVhsv(294, 80%, 51%)
CMYKcmyk(7.7%, 80%, 0%, 49%)
CIE-LABlab(30.27, 52.41, -37.06)
CIE-LCHlch(30.27, 64.19, 324.74°)
OKLaboklab(42.2% 0.1408 -0.1035)
OKLCHoklch(42.2% 0.175 323.7)
XYZxyz(12.1440, 6.3443, 21.6997)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781A82 #24821A
analogous
#441A82 #781A82 #821A58
triadic
#781A82 #82781A #1A8278
tetradic
#781A82 #82441A #24821A #1A5882
square
#781A82 #82441A #24821A #1A5882
split-complementary
#781A82 #58821A #1A8244
monochromatic
#1A061C #49104F #781A82 #A724B5 #CA3ED8

Accessibility & contrast

On white

9.26
#781A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781A82
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781A82#FFFFFF#000000##FFFFFF
##781A821.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#2E4B80
Tritanopia (blue-blind)
#7A2E4E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781a82;
/* rgb */ color: rgb(120, 26, 130);
/* oklch */ color: oklch(42.2% 0.175 323.7);
Tailwind
colors: {
  custom: {
    50: '#a363a7',
    500: '#781a82',
    950: '#000000',
  },
}
SCSS
$custom: #781a82;
$custom-light: #a363a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781a82",
  "rgb": {
    "r": 120,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 294.231,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42195,
    "c": 0.17472,
    "h": 323.7
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#781A82
secondary
#4DB642
accent
#EA3E4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781A82

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

Preview Lab → · Contrast checker → · Palette generator →

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