#78188F#78188F

#78188F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 43.0% C 0.187 H 318.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#78188F
RGBrgb(120, 24, 143)
HSLhsl(288, 71%, 33%)
HSVhsv(288, 83%, 56%)
CMYKcmyk(16.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(30.95, 55.44, -44.04)
CIE-LCHlch(30.95, 70.80, 321.54°)
OKLaboklab(42.96% 0.1406 -0.1239)
OKLCHoklch(42.96% 0.187 318.6)
XYZxyz(13.0296, 6.6301, 26.5747)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78188F #2F8F18
analogous
#3C188F #78188F #8F186B
triadic
#78188F #8F7818 #188F78
tetradic
#78188F #8F3C18 #2F8F18 #186B8F
square
#78188F #8F3C18 #2F8F18 #186B8F
split-complementary
#78188F #6B8F18 #188F3C
monochromatic
#200626 #4C0F5B #78188F #A421C3 #C142DF

Accessibility & contrast

On white

9.03
#78188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#78188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78188F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78188F#FFFFFF#000000##FFFFFF
##78188F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #78188f;
/* rgb */ color: rgb(120, 24, 143);
/* oklch */ color: oklch(43.0% 0.187 318.6);
Tailwind
colors: {
  custom: {
    50: '#a363b0',
    500: '#78188f',
    950: '#000000',
  },
}
SCSS
$custom: #78188f;
$custom-light: #a363b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78188f",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 288.403,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42961,
    "c": 0.18745,
    "h": 318.6
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#78188F
secondary
#5BC043
accent
#EE3A5D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #78188F

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

Preview Lab → · Contrast checker → · Palette generator →

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