#78217F#78217F

#78217F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.165 H 324.7°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#78217F
RGBrgb(120, 33, 127)
HSLhsl(296, 59%, 31%)
HSVhsv(296, 74%, 50%)
CMYKcmyk(5.5%, 74%, 0%, 50.2%)
CIE-LABlab(30.91, 49.46, -34.14)
CIE-LCHlch(30.91, 60.10, 325.38°)
OKLaboklab(42.59% 0.1344 -0.095)
OKLCHoklch(42.59% 0.165 324.7)
XYZxyz(12.1200, 6.6139, 20.7128)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78217F #287F21
analogous
#49217F #78217F #7F2157
triadic
#78217F #7F7821 #217F78
tetradic
#78217F #7F4921 #287F21 #21577F
square
#78217F #7F4921 #287F21 #21577F
split-complementary
#78217F #577F21 #217F49
monochromatic
#1C081E #4A144E #78217F #A62EB0 #C64AD0

Accessibility & contrast

On white

9.04
#78217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#78217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78217F
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78217F#FFFFFF#000000##FFFFFF
##78217F1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044282
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#7B314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #78217f;
/* rgb */ color: rgb(120, 33, 127);
/* oklch */ color: oklch(42.6% 0.165 324.7);
Tailwind
colors: {
  custom: {
    50: '#a266a4',
    500: '#78217f',
    950: '#000000',
  },
}
SCSS
$custom: #78217f;
$custom-light: #a266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#78217f",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 295.532,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42594,
    "c": 0.16457,
    "h": 324.7
  },
  "luminance": 0.06613
}

Semantic roles & 50–950 ramp

primary
#78217F
secondary
#52B24A
accent
#E24651
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #78217F

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

Preview Lab → · Contrast checker → · Palette generator →

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