#781F87#781F87

#781F87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.174 H 321.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#781F87
RGBrgb(120, 31, 135)
HSLhsl(291, 63%, 33%)
HSVhsv(291, 77%, 53%)
CMYKcmyk(11.1%, 77%, 0%, 47.1%)
CIE-LABlab(31.17, 51.69, -38.73)
CIE-LCHlch(31.17, 64.59, 323.16°)
OKLaboklab(42.94% 0.1358 -0.1084)
OKLCHoklch(42.94% 0.174 321.4)
XYZxyz(12.6084, 6.7230, 23.5505)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F87 #2E871F
analogous
#441F87 #781F87 #871F62
triadic
#781F87 #87781F #1F8778
tetradic
#781F87 #87441F #2E871F #1F6287
square
#781F87 #87441F #2E871F #1F6287
split-complementary
#781F87 #62871F #1F8744
monochromatic
#200823 #4C1455 #781F87 #A42AB9 #C24BD6

Accessibility & contrast

On white

8.96
#781F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#781F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F87
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F87#FFFFFF#000000##FFFFFF
##781F871.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2C4D85
Tritanopia (blue-blind)
#793452
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f87;
/* rgb */ color: rgb(120, 31, 135);
/* oklch */ color: oklch(42.9% 0.174 321.4);
Tailwind
colors: {
  custom: {
    50: '#a265aa',
    500: '#781f87',
    950: '#000000',
  },
}
SCSS
$custom: #781f87;
$custom-light: #a265aa;
$custom-dark: #000000;
JSON
{
  "hex": "#781f87",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 291.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42941,
    "c": 0.17381,
    "h": 321.4
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#781F87
secondary
#5AB84A
accent
#E6425A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F87

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

Preview Lab → · Contrast checker → · Palette generator →

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