#78186A#78186A

#78186A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.158 H 334.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#78186A
RGBrgb(120, 24, 106)
HSLhsl(309, 67%, 28%)
HSVhsv(309, 80%, 47%)
CMYKcmyk(0%, 80%, 11.7%, 52.9%)
CIE-LABlab(28.61, 48.94, -24.43)
CIE-LCHlch(28.61, 54.70, 333.47°)
OKLaboklab(40.55% 0.1428 -0.0669)
OKLCHoklch(40.55% 0.158 334.9)
XYZxyz(10.6740, 5.6879, 14.1686)
Luminance0.0569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186A #187826
analogous
#561878 #78186A #78183A
triadic
#78186A #6A7818 #186A78
tetradic
#78186A #785618 #187826 #183A78
square
#78186A #785618 #187826 #183A78
split-complementary
#78186A #3A7818 #187856
monochromatic
#1A0517 #450E3D #78186A #AB2297 #D634BF

Accessibility & contrast

On white

9.83
#78186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#78186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78186A
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186A#FFFFFF#000000##FFFFFF
##78186A1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173A6C
Deuteranopia (green-blind)
#3B4868
Tritanopia (blue-blind)
#7E2140
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #78186a;
/* rgb */ color: rgb(120, 24, 106);
/* oklch */ color: oklch(40.6% 0.158 334.9);
Tailwind
colors: {
  custom: {
    50: '#a26195',
    500: '#78186a',
    950: '#000000',
  },
}
SCSS
$custom: #78186a;
$custom-light: #a26195;
$custom-dark: #000000;
JSON
{
  "hex": "#78186a",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 308.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40552,
    "c": 0.1577,
    "h": 334.9
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#78186A
secondary
#3FAD4F
accent
#EA573E
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78186A

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

Preview Lab → · Contrast checker → · Palette generator →

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