#78197D#78197D

#78197D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.172 H 325.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#78197D
RGBrgb(120, 25, 125)
HSLhsl(297, 67%, 29%)
HSVhsv(297, 80%, 49%)
CMYKcmyk(4%, 80%, 0%, 51%)
CIE-LABlab(29.84, 51.82, -34.60)
CIE-LCHlch(29.84, 62.31, 326.27°)
OKLaboklab(41.79% 0.142 -0.0963)
OKLCHoklch(41.79% 0.172 325.8)
XYZxyz(11.7948, 6.1698, 19.9677)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78197D #1E7D19
analogous
#46197D #78197D #7D1950
triadic
#78197D #7D7819 #197D78
tetradic
#78197D #7D4619 #1E7D19 #19507D
square
#78197D #7D4619 #1E7D19 #19507D
split-complementary
#78197D #507D19 #197D46
monochromatic
#18051A #470F4A #78197D #A923B0 #CF39D7

Accessibility & contrast

On white

9.40
#78197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78197D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78197D#FFFFFF#000000##FFFFFF
##78197D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#314A7B
Tritanopia (blue-blind)
#7B2B4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78197d;
/* rgb */ color: rgb(120, 25, 125);
/* oklch */ color: oklch(41.8% 0.172 325.8);
Tailwind
colors: {
  custom: {
    50: '#a262a3',
    500: '#78197d',
    950: '#000000',
  },
}
SCSS
$custom: #78197d;
$custom-light: #a262a3;
$custom-dark: #000000;
JSON
{
  "hex": "#78197d",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 297,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41788,
    "c": 0.17157,
    "h": 325.8
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#78197D
secondary
#46B140
accent
#EA3E47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78197D

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

Preview Lab → · Contrast checker → · Palette generator →

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