#78186B#78186B

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

Color values

HEX#78186B
RGBrgb(120, 24, 107)
HSLhsl(308, 67%, 28%)
HSVhsv(308, 80%, 47%)
CMYKcmyk(0%, 80%, 10.8%, 52.9%)
CIE-LABlab(28.67, 49.10, -24.99)
CIE-LCHlch(28.67, 55.09, 333.02°)
OKLaboklab(40.61% 0.1429 -0.0685)
OKLCHoklch(40.61% 0.158 334.4)
XYZxyz(10.7263, 5.7088, 14.4441)
Luminance0.0571 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78186B #187825
analogous
#551878 #78186B #78183B
triadic
#78186B #6B7818 #186B78
tetradic
#78186B #785518 #187825 #183B78
square
#78186B #785518 #187825 #183B78
split-complementary
#78186B #3B7818 #187855
monochromatic
#1A0517 #450E3E #78186B #AB2298 #D634C0

Accessibility & contrast

On white

9.81
#78186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78186B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78186B#FFFFFF#000000##FFFFFF
##78186B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6D
Deuteranopia (green-blind)
#3B4969
Tritanopia (blue-blind)
#7E2140
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #78186b;
/* rgb */ color: rgb(120, 24, 107);
/* oklch */ color: oklch(40.6% 0.158 334.4);
Tailwind
colors: {
  custom: {
    50: '#a26195',
    500: '#78186b',
    950: '#000000',
  },
}
SCSS
$custom: #78186b;
$custom-light: #a26195;
$custom-dark: #000000;
JSON
{
  "hex": "#78186b",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 308.125,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40609,
    "c": 0.15844,
    "h": 334.4
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#78186B
secondary
#3FAD4E
accent
#EA553E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F050D
muted
#7F7A7E

Preview Lab

Preview with #78186B

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

Preview Lab → · Contrast checker → · Palette generator →

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