#782878#782878

#782878 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 42.9% C 0.149 H 327.8°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#782878
RGBrgb(120, 40, 120)
HSLhsl(300, 50%, 31%)
HSVhsv(300, 67%, 47%)
CMYKcmyk(0%, 66.7%, 0%, 52.9%)
CIE-LABlab(31.50, 45.34, -28.80)
CIE-LCHlch(31.50, 53.71, 327.58°)
OKLaboklab(42.89% 0.1264 -0.0796)
OKLCHoklch(42.89% 0.149 327.8)
XYZxyz(11.8945, 6.8675, 18.4647)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782878 #287828
analogous
#502878 #782878 #782850
triadic
#782878 #787828 #287878
tetradic
#782878 #785028 #287828 #285078
square
#782878 #785028 #287828 #285078
split-complementary
#782878 #507828 #287850
monochromatic
#1C091C #4A194A #782878 #A637A6 #C654C6

Accessibility & contrast

On white

8.85
#782878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#782878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782878
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782878#FFFFFF#000000##FFFFFF
##7828781.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D437A
Deuteranopia (green-blind)
#3B4E76
Tritanopia (blue-blind)
#7C334C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782878;
/* rgb */ color: rgb(120, 40, 120);
/* oklch */ color: oklch(42.9% 0.149 327.8);
Tailwind
colors: {
  custom: {
    50: '#a2699f',
    500: '#782878',
    950: '#000000',
  },
}
SCSS
$custom: #782878;
$custom-light: #a2699f;
$custom-dark: #000000;
JSON
{
  "hex": "#782878",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42887,
    "c": 0.14932,
    "h": 327.8
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#782878
secondary
#52AA52
accent
#DA4E4E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782878

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

Preview Lab → · Contrast checker → · Palette generator →

#782878 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva