#78186E#78186E

#78186E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.161 H 332.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#78186E
RGBrgb(120, 24, 110)
HSLhsl(306, 67%, 28%)
HSVhsv(306, 80%, 47%)
CMYKcmyk(0%, 80%, 8.3%, 52.9%)
CIE-LABlab(28.83, 49.58, -26.66)
CIE-LCHlch(28.83, 56.29, 331.74°)
OKLaboklab(40.78% 0.143 -0.0733)
OKLCHoklch(40.78% 0.161 332.9)
XYZxyz(10.8869, 5.7731, 15.2898)
Luminance0.0577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186E #187822
analogous
#521878 #78186E #78183E
triadic
#78186E #6E7818 #186E78
tetradic
#78186E #785218 #187822 #183E78
square
#78186E #785218 #187822 #183E78
split-complementary
#78186E #3E7818 #187852
monochromatic
#1A0517 #450E3F #78186E #AB229D #D634C5

Accessibility & contrast

On white

9.75
#78186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78186E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186E#FFFFFF#000000##FFFFFF
##78186E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B70
Deuteranopia (green-blind)
#39496C
Tritanopia (blue-blind)
#7E2342
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78186e;
/* rgb */ color: rgb(120, 24, 110);
/* oklch */ color: oklch(40.8% 0.161 332.9);
Tailwind
colors: {
  custom: {
    50: '#a26198',
    500: '#78186e',
    950: '#000000',
  },
}
SCSS
$custom: #78186e;
$custom-light: #a26198;
$custom-dark: #000000;
JSON
{
  "hex": "#78186e",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 306.25,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40783,
    "c": 0.16071,
    "h": 332.9
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#78186E
secondary
#3FAD4A
accent
#EA503E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #78186E

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

Preview Lab → · Contrast checker → · Palette generator →

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