#781D80#781D80

#781D80 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.170 H 324.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#781D80
RGBrgb(120, 29, 128)
HSLhsl(295, 63%, 31%)
HSVhsv(295, 77%, 50%)
CMYKcmyk(6.3%, 77.3%, 0%, 49.8%)
CIE-LABlab(30.48, 51.07, -35.47)
CIE-LCHlch(30.48, 62.18, 325.22°)
OKLaboklab(42.3% 0.1382 -0.0989)
OKLCHoklch(42.3% 0.17 324.4)
XYZxyz(12.0811, 6.4311, 21.0229)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D80 #25801D
analogous
#471D80 #781D80 #801D56
triadic
#781D80 #80781D #1D8078
tetradic
#781D80 #80471D #25801D #1D5680
square
#781D80 #80471D #25801D #1D5680
split-complementary
#781D80 #56801D #1D8047
monochromatic
#1A061C #49124E #781D80 #A728B2 #C943D4

Accessibility & contrast

On white

9.19
#781D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781D80
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D80#FFFFFF#000000##FFFFFF
##781D801.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#314B7E
Tritanopia (blue-blind)
#7A2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781d80;
/* rgb */ color: rgb(120, 29, 128);
/* oklch */ color: oklch(42.3% 0.170 324.4);
Tailwind
colors: {
  custom: {
    50: '#a264a5',
    500: '#781d80',
    950: '#000000',
  },
}
SCSS
$custom: #781d80;
$custom-light: #a264a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781d80",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 295.152,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42303,
    "c": 0.16996,
    "h": 324.4
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#781D80
secondary
#4EB345
accent
#E6424F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781D80

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

Preview Lab → · Contrast checker → · Palette generator →

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