#781C8E#781C8E

#781C8E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.183 H 318.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#781C8E
RGBrgb(120, 28, 142)
HSLhsl(288, 67%, 33%)
HSVhsv(288, 80%, 56%)
CMYKcmyk(15.5%, 80.3%, 0%, 44.3%)
CIE-LABlab(31.29, 54.04, -42.87)
CIE-LCHlch(31.29, 68.98, 321.58°)
OKLaboklab(43.18% 0.1377 -0.1205)
OKLCHoklch(43.18% 0.183 318.8)
XYZxyz(13.0428, 6.7772, 26.2071)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781C8E #328E1C
analogous
#3F1C8E #781C8E #8E1C6B
triadic
#781C8E #8E781C #1C8E78
tetradic
#781C8E #8E3F1C #328E1C #1C6B8E
square
#781C8E #8E3F1C #328E1C #1C6B8E
split-complementary
#781C8E #6B8E1C #1C8E3F
monochromatic
#220828 #4D125B #781C8E #A326C1 #BF49DB

Accessibility & contrast

On white

8.92
#781C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781C8E
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781C8E#FFFFFF#000000##FFFFFF
##781C8E1.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#783555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781c8e;
/* rgb */ color: rgb(120, 28, 142);
/* oklch */ color: oklch(43.2% 0.183 318.8);
Tailwind
colors: {
  custom: {
    50: '#a364b0',
    500: '#781c8e',
    950: '#000000',
  },
}
SCSS
$custom: #781c8e;
$custom-light: #a364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781c8e",
  "rgb": {
    "r": 120,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 288.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43182,
    "c": 0.18297,
    "h": 318.8
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#781C8E
secondary
#5FBD49
accent
#EA3E5F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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