#78197C#78197C

#78197C is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.171 H 326.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#78197C
RGBrgb(120, 25, 124)
HSLhsl(298, 66%, 29%)
HSVhsv(298, 80%, 49%)
CMYKcmyk(3.2%, 79.8%, 0%, 51.4%)
CIE-LABlab(29.77, 51.64, -34.07)
CIE-LCHlch(29.77, 61.87, 326.59°)
OKLaboklab(41.72% 0.142 -0.0948)
OKLCHoklch(41.72% 0.171 326.3)
XYZxyz(11.7312, 6.1444, 19.6330)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78197C #1D7C19
analogous
#47197C #78197C #7C194F
triadic
#78197C #7C7819 #197C78
tetradic
#78197C #7C4719 #1D7C19 #194F7C
square
#78197C #7C4719 #1D7C19 #194F7C
split-complementary
#78197C #4F7C19 #197C47
monochromatic
#190519 #470F49 #78197C #A923AF #D138D7

Accessibility & contrast

On white

9.42
#78197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#78197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78197C
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78197C#FFFFFF#000000##FFFFFF
##78197C1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#324A7A
Tritanopia (blue-blind)
#7B2B4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78197c;
/* rgb */ color: rgb(120, 25, 124);
/* oklch */ color: oklch(41.7% 0.171 326.3);
Tailwind
colors: {
  custom: {
    50: '#a262a2',
    500: '#78197c',
    950: '#000000',
  },
}
SCSS
$custom: #78197c;
$custom-light: #a262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78197c",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 297.576,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41723,
    "c": 0.17075,
    "h": 326.3
  },
  "luminance": 0.06144
}

Semantic roles & 50–950 ramp

primary
#78197C
secondary
#45B040
accent
#E93E45
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78197C

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

Preview Lab → · Contrast checker → · Palette generator →

#78197C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva