#781C8A#781C8A

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

Color values

HEX#781C8A
RGBrgb(120, 28, 138)
HSLhsl(290, 66%, 33%)
HSVhsv(290, 80%, 54%)
CMYKcmyk(13%, 79.7%, 0%, 45.9%)
CIE-LABlab(31.02, 53.27, -40.83)
CIE-LCHlch(31.02, 67.12, 322.53°)
OKLaboklab(42.9% 0.1382 -0.1146)
OKLCHoklch(42.9% 0.18 320.3)
XYZxyz(12.7479, 6.6592, 24.6537)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C8A #2E8A1C
analogous
#411C8A #781C8A #8A1C65
triadic
#781C8A #8A781C #1C8A78
tetradic
#781C8A #8A411C #2E8A1C #1C658A
square
#781C8A #8A411C #2E8A1C #1C658A
split-complementary
#781C8A #658A1C #1C8A41
monochromatic
#200724 #4C1257 #781C8A #A426BD #C247DA

Accessibility & contrast

On white

9.01
#781C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781C8A
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C8A#FFFFFF#000000##FFFFFF
##781C8A1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#284C88
Tritanopia (blue-blind)
#783353
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781c8a;
/* rgb */ color: rgb(120, 28, 138);
/* oklch */ color: oklch(42.9% 0.180 320.3);
Tailwind
colors: {
  custom: {
    50: '#a364ad',
    500: '#781c8a',
    950: '#000000',
  },
}
SCSS
$custom: #781c8a;
$custom-light: #a364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781c8a",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 290.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42899,
    "c": 0.17951,
    "h": 320.3
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#781C8A
secondary
#5ABB46
accent
#E93F5B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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