#78197E#78197E

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

Color values

HEX#78197E
RGBrgb(120, 25, 126)
HSLhsl(296, 67%, 30%)
HSVhsv(296, 80%, 49%)
CMYKcmyk(4.8%, 80.2%, 0%, 50.6%)
CIE-LABlab(29.90, 52.00, -35.13)
CIE-LCHlch(29.90, 62.75, 325.96°)
OKLaboklab(41.85% 0.1419 -0.0979)
OKLCHoklch(41.85% 0.172 325.4)
XYZxyz(11.8590, 6.1955, 20.3058)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78197E #1F7E19
analogous
#46197E #78197E #7E1951
triadic
#78197E #7E7819 #197E78
tetradic
#78197E #7E4619 #1F7E19 #19517E
square
#78197E #7E4619 #1F7E19 #19517E
split-complementary
#78197E #517E19 #197E46
monochromatic
#18051A #470F4B #78197E #A923B1 #CE3AD8

Accessibility & contrast

On white

9.38
#78197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#78197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78197E
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78197E#FFFFFF#000000##FFFFFF
##78197E1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#7B2C4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #78197e;
/* rgb */ color: rgb(120, 25, 126);
/* oklch */ color: oklch(41.9% 0.172 325.4);
Tailwind
colors: {
  custom: {
    50: '#a262a4',
    500: '#78197e',
    950: '#000000',
  },
}
SCSS
$custom: #78197e;
$custom-light: #a262a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78197e",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 296.436,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.17238,
    "h": 325.4
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#78197E
secondary
#47B241
accent
#EA3E48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78197E

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

Preview Lab → · Contrast checker → · Palette generator →

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