#781D78#781D78

#781D78 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.163 H 328.0°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#781D78
RGBrgb(120, 29, 120)
HSLhsl(300, 61%, 29%)
HSVhsv(300, 76%, 47%)
CMYKcmyk(0%, 75.8%, 0%, 52.9%)
CIE-LABlab(29.98, 49.64, -31.21)
CIE-LCHlch(29.98, 58.63, 327.84°)
OKLaboklab(41.79% 0.1385 -0.0865)
OKLCHoklch(41.79% 0.163 328)
XYZxyz(11.5751, 6.2287, 18.3583)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D78 #1D781D
analogous
#4B1D78 #781D78 #781D4B
triadic
#781D78 #78781D #1D7878
tetradic
#781D78 #784B1D #1D781D #1D4B78
square
#781D78 #784B1D #1D781D #1D4B78
split-complementary
#781D78 #4B781D #1D784B
monochromatic
#190619 #471147 #781D78 #A929A9 #D13FD1

Accessibility & contrast

On white

9.35
#781D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D78
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D78#FFFFFF#000000##FFFFFF
##781D781.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7A
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#7C2B49
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781d78;
/* rgb */ color: rgb(120, 29, 120);
/* oklch */ color: oklch(41.8% 0.163 328.0);
Tailwind
colors: {
  custom: {
    50: '#a2649f',
    500: '#781d78',
    950: '#000000',
  },
}
SCSS
$custom: #781d78;
$custom-light: #a2649f;
$custom-dark: #000000;
JSON
{
  "hex": "#781d78",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41793,
    "c": 0.16328,
    "h": 328
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#781D78
secondary
#45AC45
accent
#E44444
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781D78

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

Preview Lab → · Contrast checker → · Palette generator →

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