#78278F#78278F

#78278F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.172 H 317.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#78278F
RGBrgb(120, 39, 143)
HSLhsl(287, 57%, 36%)
HSVhsv(287, 73%, 56%)
CMYKcmyk(16.1%, 72.7%, 0%, 43.9%)
CIE-LABlab(32.76, 50.23, -41.12)
CIE-LCHlch(32.76, 64.92, 320.70°)
OKLaboklab(44.24% 0.1271 -0.1155)
OKLCHoklch(44.24% 0.172 317.7)
XYZxyz(13.4285, 7.4279, 26.7077)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78278F #3E8F27
analogous
#44278F #78278F #8F2772
triadic
#78278F #8F7827 #278F78
tetradic
#78278F #8F4427 #3E8F27 #27728F
square
#78278F #8F4427 #3E8F27 #27728F
split-complementary
#78278F #728F27 #278F44
monochromatic
#270D2F #501A5F #78278F #A034BF #B95DD3

Accessibility & contrast

On white

8.45
#78278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#78278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78278F
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78278F#FFFFFF#000000##FFFFFF
##78278F1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#2B508D
Tritanopia (blue-blind)
#773C58
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #78278f;
/* rgb */ color: rgb(120, 39, 143);
/* oklch */ color: oklch(44.2% 0.172 317.7);
Tailwind
colors: {
  custom: {
    50: '#a269b0',
    500: '#78278f',
    950: '#000000',
  },
}
SCSS
$custom: #78278f;
$custom-light: #a269b0;
$custom-dark: #000000;
JSON
{
  "hex": "#78278f",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 286.731,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44244,
    "c": 0.17174,
    "h": 317.7
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#78278F
secondary
#6FB85A
accent
#E04769
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #78278F

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

Preview Lab → · Contrast checker → · Palette generator →

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