#781D8F#781D8F

#781D8F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.183 H 318.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#781D8F
RGBrgb(120, 29, 143)
HSLhsl(288, 66%, 34%)
HSVhsv(288, 80%, 56%)
CMYKcmyk(16.1%, 79.7%, 0%, 43.9%)
CIE-LABlab(31.48, 53.91, -43.19)
CIE-LCHlch(31.48, 69.08, 321.30°)
OKLaboklab(43.33% 0.1367 -0.1215)
OKLCHoklch(43.33% 0.183 318.4)
XYZxyz(13.1423, 6.8556, 26.6123)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781D8F #348F1D
analogous
#3F1D8F #781D8F #8F1D6D
triadic
#781D8F #8F781D #1D8F78
tetradic
#781D8F #8F3F1D #348F1D #1D6D8F
square
#781D8F #8F3F1D #348F1D #1D6D8F
split-complementary
#781D8F #6D8F1D #1D8F3F
monochromatic
#230829 #4D135C #781D8F #A327C2 #BE4CDB

Accessibility & contrast

On white

8.86
#781D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#781D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781D8F
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781D8F#FFFFFF#000000##FFFFFF
##781D8F1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#234D8D
Tritanopia (blue-blind)
#773656
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781d8f;
/* rgb */ color: rgb(120, 29, 143);
/* oklch */ color: oklch(43.3% 0.183 318.4);
Tailwind
colors: {
  custom: {
    50: '#a365b0',
    500: '#781d8f',
    950: '#000000',
  },
}
SCSS
$custom: #781d8f;
$custom-light: #a365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781d8f",
  "rgb": {
    "r": 120,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 287.895,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43332,
    "c": 0.18286,
    "h": 318.4
  },
  "luminance": 0.06855
}

Semantic roles & 50–950 ramp

primary
#781D8F
secondary
#62BD4B
accent
#E93F61
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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