#781F8F#781F8F

#781F8F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.181 H 318.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#781F8F
RGBrgb(120, 31, 143)
HSLhsl(288, 64%, 34%)
HSVhsv(288, 78%, 56%)
CMYKcmyk(16.1%, 78.3%, 0%, 43.9%)
CIE-LABlab(31.71, 53.24, -42.82)
CIE-LCHlch(31.71, 68.32, 321.20°)
OKLaboklab(43.5% 0.1349 -0.1204)
OKLCHoklch(43.5% 0.181 318.3)
XYZxyz(13.1930, 6.9568, 26.6291)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F8F #368F1F
analogous
#401F8F #781F8F #8F1F6E
triadic
#781F8F #8F781F #1F8F78
tetradic
#781F8F #8F401F #368F1F #1F6E8F
square
#781F8F #8F401F #368F1F #1F6E8F
split-complementary
#781F8F #6E8F1F #1F8F40
monochromatic
#24092A #4E145D #781F8F #A22AC1 #BD4FD9

Accessibility & contrast

On white

8.78
#781F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F8F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F8F#FFFFFF#000000##FFFFFF
##781F8F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#254D8D
Tritanopia (blue-blind)
#773756
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781f8f;
/* rgb */ color: rgb(120, 31, 143);
/* oklch */ color: oklch(43.5% 0.181 318.3);
Tailwind
colors: {
  custom: {
    50: '#a366b0',
    500: '#781f8f',
    950: '#000000',
  },
}
SCSS
$custom: #781f8f;
$custom-light: #a366b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781f8f",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 287.679,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43496,
    "c": 0.18084,
    "h": 318.3
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#781F8F
secondary
#64BC4E
accent
#E74063
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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