#781F8E#781F8E

#781F8E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.180 H 318.6°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#781F8E
RGBrgb(120, 31, 142)
HSLhsl(288, 64%, 34%)
HSVhsv(288, 78%, 56%)
CMYKcmyk(15.5%, 78.2%, 0%, 44.3%)
CIE-LABlab(31.64, 53.05, -42.31)
CIE-LCHlch(31.64, 67.85, 321.42°)
OKLaboklab(43.43% 0.1351 -0.1189)
OKLCHoklch(43.43% 0.18 318.6)
XYZxyz(13.1175, 6.9267, 26.2320)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F8E #358E1F
analogous
#411F8E #781F8E #8E1F6D
triadic
#781F8E #8E781F #1F8E78
tetradic
#781F8E #8E411F #358E1F #1F6D8E
square
#781F8E #8E411F #358E1F #1F6D8E
split-complementary
#781F8E #6D8E1F #1F8E41
monochromatic
#23092A #4E145C #781F8E #A22AC0 #BD4FD9

Accessibility & contrast

On white

8.80
#781F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#781F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F8E
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F8E#FFFFFF#000000##FFFFFF
##781F8E1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#264D8C
Tritanopia (blue-blind)
#783756
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781f8e;
/* rgb */ color: rgb(120, 31, 142);
/* oklch */ color: oklch(43.4% 0.180 318.6);
Tailwind
colors: {
  custom: {
    50: '#a365b0',
    500: '#781f8e',
    950: '#000000',
  },
}
SCSS
$custom: #781f8e;
$custom-light: #a365b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781f8e",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 288.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.17995,
    "h": 318.6
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#781F8E
secondary
#63BB4D
accent
#E74162
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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