#781F8A#781F8A

#781F8A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.176 H 320.2°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#781F8A
RGBrgb(120, 31, 138)
HSLhsl(290, 63%, 33%)
HSVhsv(290, 78%, 54%)
CMYKcmyk(13%, 77.5%, 0%, 45.9%)
CIE-LABlab(31.37, 52.27, -40.27)
CIE-LCHlch(31.37, 65.98, 322.39°)
OKLaboklab(43.15% 0.1355 -0.1129)
OKLCHoklch(43.15% 0.176 320.2)
XYZxyz(12.8226, 6.8087, 24.6786)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F8A #318A1F
analogous
#431F8A #781F8A #8A1F66
triadic
#781F8A #8A781F #1F8A78
tetradic
#781F8A #8A431F #318A1F #1F668A
square
#781F8A #8A431F #318A1F #1F668A
split-complementary
#781F8A #668A1F #1F8A43
monochromatic
#210926 #4D1458 #781F8A #A32ABC #C04CD7

Accessibility & contrast

On white

8.89
#781F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#781F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F8A
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F8A#FFFFFF#000000##FFFFFF
##781F8A1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2A4D88
Tritanopia (blue-blind)
#783554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781f8a;
/* rgb */ color: rgb(120, 31, 138);
/* oklch */ color: oklch(43.1% 0.176 320.2);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#781f8a',
    950: '#000000',
  },
}
SCSS
$custom: #781f8a;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781f8a",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 289.907,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.17643,
    "h": 320.2
  },
  "luminance": 0.06808
}

Semantic roles & 50–950 ramp

primary
#781F8A
secondary
#5EBA4B
accent
#E6415D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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