#78186D#78186D

#78186D is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.160 H 333.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#78186D
RGBrgb(120, 24, 109)
HSLhsl(307, 67%, 28%)
HSVhsv(307, 80%, 47%)
CMYKcmyk(0%, 80%, 9.2%, 52.9%)
CIE-LABlab(28.78, 49.42, -26.10)
CIE-LCHlch(28.78, 55.89, 332.16°)
OKLaboklab(40.73% 0.143 -0.0717)
OKLCHoklch(40.73% 0.16 333.4)
XYZxyz(10.8328, 5.7514, 15.0046)
Luminance0.0575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186D #187823
analogous
#531878 #78186D #78183D
triadic
#78186D #6D7818 #186D78
tetradic
#78186D #785318 #187823 #183D78
square
#78186D #785318 #187823 #183D78
split-complementary
#78186D #3D7818 #187853
monochromatic
#1A0517 #450E3F #78186D #AB229B #D634C4

Accessibility & contrast

On white

9.77
#78186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78186D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186D#FFFFFF#000000##FFFFFF
##78186D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#3A496B
Tritanopia (blue-blind)
#7E2242
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78186d;
/* rgb */ color: rgb(120, 24, 109);
/* oklch */ color: oklch(40.7% 0.160 333.4);
Tailwind
colors: {
  custom: {
    50: '#a26197',
    500: '#78186d',
    950: '#000000',
  },
}
SCSS
$custom: #78186d;
$custom-light: #a26197;
$custom-dark: #000000;
JSON
{
  "hex": "#78186d",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 306.875,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40725,
    "c": 0.15995,
    "h": 333.4
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#78186D
secondary
#3FAD4B
accent
#EA523E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #78186D

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

Preview Lab → · Contrast checker → · Palette generator →

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