#78178D#78178D

#78178D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.187 H 319.4°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#78178D
RGBrgb(120, 23, 141)
HSLhsl(289, 72%, 32%)
HSVhsv(289, 84%, 55%)
CMYKcmyk(14.9%, 83.7%, 0%, 44.7%)
CIE-LABlab(30.71, 55.34, -43.19)
CIE-LCHlch(30.71, 70.20, 322.03°)
OKLaboklab(42.75% 0.1417 -0.1214)
OKLCHoklch(42.75% 0.187 319.4)
XYZxyz(12.8592, 6.5296, 25.7771)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78178D #2C8D17
analogous
#3D178D #78178D #8D1767
triadic
#78178D #8D7817 #178D78
tetradic
#78178D #8D3D17 #2C8D17 #17678D
square
#78178D #8D3D17 #2C8D17 #17678D
split-complementary
#78178D #678D17 #178D3D
monochromatic
#1E0624 #4B0E58 #78178D #A520C2 #C33FE0

Accessibility & contrast

On white

9.11
#78178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#78178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78178D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78178D#FFFFFF#000000##FFFFFF
##78178D1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#224B8B
Tritanopia (blue-blind)
#783354
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #78178d;
/* rgb */ color: rgb(120, 23, 141);
/* oklch */ color: oklch(42.7% 0.187 319.4);
Tailwind
colors: {
  custom: {
    50: '#a362af',
    500: '#78178d',
    950: '#000000',
  },
}
SCSS
$custom: #78178d;
$custom-light: #a362af;
$custom-dark: #000000;
JSON
{
  "hex": "#78178d",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 289.322,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42749,
    "c": 0.18662,
    "h": 319.4
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#78178D
secondary
#57C040
accent
#EF3959
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #78178D

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

Preview Lab → · Contrast checker → · Palette generator →

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