#78186F#78186F

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

Color values

HEX#78186F
RGBrgb(120, 24, 111)
HSLhsl(306, 67%, 28%)
HSVhsv(306, 80%, 47%)
CMYKcmyk(0%, 80%, 7.5%, 52.9%)
CIE-LABlab(28.89, 49.74, -27.21)
CIE-LCHlch(28.89, 56.70, 331.32°)
OKLaboklab(40.84% 0.1431 -0.0748)
OKLCHoklch(40.84% 0.161 332.4)
XYZxyz(10.9416, 5.7950, 15.5781)
Luminance0.0579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186F #187821
analogous
#511878 #78186F #78183F
triadic
#78186F #6F7818 #186F78
tetradic
#78186F #785118 #187821 #183F78
square
#78186F #785118 #187821 #183F78
split-complementary
#78186F #3F7818 #187851
monochromatic
#1A0518 #450E40 #78186F #AB229E #D634C7

Accessibility & contrast

On white

9.73
#78186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#78186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78186F
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186F#FFFFFF#000000##FFFFFF
##78186F1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C71
Deuteranopia (green-blind)
#39496D
Tritanopia (blue-blind)
#7D2443
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78186f;
/* rgb */ color: rgb(120, 24, 111);
/* oklch */ color: oklch(40.8% 0.161 332.4);
Tailwind
colors: {
  custom: {
    50: '#a26198',
    500: '#78186f',
    950: '#000000',
  },
}
SCSS
$custom: #78186f;
$custom-light: #a26198;
$custom-dark: #000000;
JSON
{
  "hex": "#78186f",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 305.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.16147,
    "h": 332.4
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#78186F
secondary
#3FAD49
accent
#EA4E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #78186F

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

Preview Lab → · Contrast checker → · Palette generator →

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