#78186C#78186C

#78186C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.7% C 0.159 H 333.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#78186C
RGBrgb(120, 24, 108)
HSLhsl(308, 67%, 28%)
HSVhsv(308, 80%, 47%)
CMYKcmyk(0%, 80%, 10%, 52.9%)
CIE-LABlab(28.72, 49.26, -25.55)
CIE-LCHlch(28.72, 55.49, 332.59°)
OKLaboklab(40.67% 0.143 -0.0701)
OKLCHoklch(40.67% 0.159 333.9)
XYZxyz(10.7792, 5.7300, 14.7227)
Luminance0.0573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186C #187824
analogous
#541878 #78186C #78183C
triadic
#78186C #6C7818 #186C78
tetradic
#78186C #785418 #187824 #183C78
square
#78186C #785418 #187824 #183C78
split-complementary
#78186C #3C7818 #187854
monochromatic
#1A0517 #450E3E #78186C #AB229A #D634C2

Accessibility & contrast

On white

9.79
#78186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#78186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78186C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186C#FFFFFF#000000##FFFFFF
##78186C1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6E
Deuteranopia (green-blind)
#3A496A
Tritanopia (blue-blind)
#7E2241
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78186c;
/* rgb */ color: rgb(120, 24, 108);
/* oklch */ color: oklch(40.7% 0.159 333.9);
Tailwind
colors: {
  custom: {
    50: '#a26196',
    500: '#78186c',
    950: '#000000',
  },
}
SCSS
$custom: #78186c;
$custom-light: #a26196;
$custom-dark: #000000;
JSON
{
  "hex": "#78186c",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 307.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.1592,
    "h": 333.9
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#78186C
secondary
#3FAD4D
accent
#EA543E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #78186C

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

Preview Lab → · Contrast checker → · Palette generator →

#78186C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva