#78197F#78197F

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

Color values

HEX#78197F
RGBrgb(120, 25, 127)
HSLhsl(296, 67%, 30%)
HSVhsv(296, 80%, 50%)
CMYKcmyk(5.5%, 80.3%, 0%, 50.2%)
CIE-LABlab(29.96, 52.18, -35.65)
CIE-LCHlch(29.96, 63.20, 325.65°)
OKLaboklab(41.92% 0.1418 -0.0994)
OKLCHoklch(41.92% 0.173 325)
XYZxyz(11.9238, 6.2214, 20.6474)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78197F #207F19
analogous
#45197F #78197F #7F1953
triadic
#78197F #7F7819 #197F78
tetradic
#78197F #7F4519 #207F19 #19537F
square
#78197F #7F4519 #207F19 #19537F
split-complementary
#78197F #537F19 #197F45
monochromatic
#18051A #480F4C #78197F #A823B2 #CD3AD8

Accessibility & contrast

On white

9.36
#78197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #78197F
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78197F#FFFFFF#000000##FFFFFF
##78197F1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#7B2C4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #78197f;
/* rgb */ color: rgb(120, 25, 127);
/* oklch */ color: oklch(41.9% 0.173 325.0);
Tailwind
colors: {
  custom: {
    50: '#a262a5',
    500: '#78197f',
    950: '#000000',
  },
}
SCSS
$custom: #78197f;
$custom-light: #a262a5;
$custom-dark: #000000;
JSON
{
  "hex": "#78197f",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 295.882,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4192,
    "c": 0.1732,
    "h": 325
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#78197F
secondary
#48B341
accent
#EA3E4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78197F

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

Preview Lab → · Contrast checker → · Palette generator →

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