#78178F#78178F

#78178F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.188 H 318.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#78178F
RGBrgb(120, 23, 143)
HSLhsl(289, 72%, 33%)
HSVhsv(289, 84%, 56%)
CMYKcmyk(16.1%, 83.9%, 0%, 43.9%)
CIE-LABlab(30.85, 55.72, -44.19)
CIE-LCHlch(30.85, 71.12, 321.58°)
OKLaboklab(42.89% 0.1414 -0.1244)
OKLCHoklch(42.89% 0.188 318.7)
XYZxyz(13.0094, 6.5897, 26.5680)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78178F #2E8F17
analogous
#3C178F #78178F #8F176A
triadic
#78178F #8F7817 #178F78
tetradic
#78178F #8F3C17 #2E8F17 #176A8F
square
#78178F #8F3C17 #2E8F17 #176A8F
split-complementary
#78178F #6A8F17 #178F3C
monochromatic
#200626 #4C0F5A #78178F #A41FC4 #C240E0

Accessibility & contrast

On white

9.06
#78178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#78178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78178F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78178F#FFFFFF#000000##FFFFFF
##78178F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#1F4C8C
Tritanopia (blue-blind)
#773455
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78178f;
/* rgb */ color: rgb(120, 23, 143);
/* oklch */ color: oklch(42.9% 0.188 318.7);
Tailwind
colors: {
  custom: {
    50: '#a363b0',
    500: '#78178f',
    950: '#000000',
  },
}
SCSS
$custom: #78178f;
$custom-light: #a363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78178f",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 288.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.42894,
    "c": 0.1883,
    "h": 318.7
  },
  "luminance": 0.06589
}

Semantic roles & 50–950 ramp

primary
#78178F
secondary
#5AC141
accent
#EF395C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #78178F

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

Preview Lab → · Contrast checker → · Palette generator →

#78178F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva