#781E8A#781E8A

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

Color values

HEX#781E8A
RGBrgb(120, 30, 138)
HSLhsl(290, 64%, 33%)
HSVhsv(290, 78%, 54%)
CMYKcmyk(13%, 78.3%, 0%, 45.9%)
CIE-LABlab(31.25, 52.61, -40.47)
CIE-LCHlch(31.25, 66.37, 322.44°)
OKLaboklab(43.06% 0.1364 -0.1135)
OKLCHoklch(43.06% 0.177 320.2)
XYZxyz(12.7969, 6.7573, 24.6701)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E8A #308A1E
analogous
#421E8A #781E8A #8A1E66
triadic
#781E8A #8A781E #1E8A78
tetradic
#781E8A #8A421E #308A1E #1E668A
square
#781E8A #8A421E #308A1E #1E668A
split-complementary
#781E8A #668A1E #1E8A42
monochromatic
#210825 #4C1358 #781E8A #A429BC #C04BD8

Accessibility & contrast

On white

8.93
#781E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#781E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E8A
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E8A#FFFFFF#000000##FFFFFF
##781E8A1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#294D88
Tritanopia (blue-blind)
#783453
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781e8a;
/* rgb */ color: rgb(120, 30, 138);
/* oklch */ color: oklch(43.1% 0.177 320.2);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#781e8a',
    950: '#000000',
  },
}
SCSS
$custom: #781e8a;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781e8a",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 290,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43061,
    "c": 0.17748,
    "h": 320.2
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#781E8A
secondary
#5CBA4A
accent
#E7415C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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