#78197B#78197B

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

Color values

HEX#78197B
RGBrgb(120, 25, 123)
HSLhsl(298, 66%, 29%)
HSVhsv(298, 80%, 48%)
CMYKcmyk(2.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(29.71, 51.47, -33.54)
CIE-LCHlch(29.71, 61.43, 326.91°)
OKLaboklab(41.66% 0.1421 -0.0932)
OKLCHoklch(41.66% 0.17 326.7)
XYZxyz(11.6683, 6.1192, 19.3016)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78197B #1C7B19
analogous
#47197B #78197B #7B194D
triadic
#78197B #7B7819 #197B78
tetradic
#78197B #7B4719 #1C7B19 #194D7B
square
#78197B #7B4719 #1C7B19 #194D7B
split-complementary
#78197B #4D7B19 #197B47
monochromatic
#190519 #460F48 #78197B #AA23AE #D238D7

Accessibility & contrast

On white

9.44
#78197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#78197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78197B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78197B#FFFFFF#000000##FFFFFF
##78197B1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#324A79
Tritanopia (blue-blind)
#7B2A4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78197b;
/* rgb */ color: rgb(120, 25, 123);
/* oklch */ color: oklch(41.7% 0.170 326.7);
Tailwind
colors: {
  custom: {
    50: '#a262a2',
    500: '#78197b',
    950: '#000000',
  },
}
SCSS
$custom: #78197b;
$custom-light: #a262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#78197b",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 298.163,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41659,
    "c": 0.16995,
    "h": 326.7
  },
  "luminance": 0.06118
}

Semantic roles & 50–950 ramp

primary
#78197B
secondary
#44AF40
accent
#E93F44
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78197B

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

Preview Lab → · Contrast checker → · Palette generator →

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