#78278D#78278D

#78278D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.1% C 0.170 H 318.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#78278D
RGBrgb(120, 39, 141)
HSLhsl(288, 57%, 35%)
HSVhsv(288, 72%, 55%)
CMYKcmyk(14.9%, 72.3%, 0%, 44.7%)
CIE-LABlab(32.63, 49.83, -40.10)
CIE-LCHlch(32.63, 63.96, 321.17°)
OKLaboklab(44.11% 0.1273 -0.1125)
OKLCHoklch(44.11% 0.17 318.5)
XYZxyz(13.2783, 7.3678, 25.9168)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78278D #3C8D27
analogous
#45278D #78278D #8D276F
triadic
#78278D #8D7827 #278D78
tetradic
#78278D #8D4527 #3C8D27 #276F8D
square
#78278D #8D4527 #3C8D27 #276F8D
split-complementary
#78278D #6F8D27 #278D45
monochromatic
#260C2D #4F1A5D #78278D #A134BD #BA5CD2

Accessibility & contrast

On white

8.49
#78278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#78278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78278D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78278D#FFFFFF#000000##FFFFFF
##78278D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#2D4F8B
Tritanopia (blue-blind)
#783B57
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #78278d;
/* rgb */ color: rgb(120, 39, 141);
/* oklch */ color: oklch(44.1% 0.170 318.5);
Tailwind
colors: {
  custom: {
    50: '#a269af',
    500: '#78278d',
    950: '#000000',
  },
}
SCSS
$custom: #78278d;
$custom-light: #a269af;
$custom-dark: #000000;
JSON
{
  "hex": "#78278d",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 287.647,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44108,
    "c": 0.16986,
    "h": 318.5
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#78278D
secondary
#6CB759
accent
#E04867
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #78278D

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

Preview Lab → · Contrast checker → · Palette generator →

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