#781878#781878

#781878 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.169 H 328.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#781878
RGBrgb(120, 24, 120)
HSLhsl(300, 67%, 28%)
HSVhsv(300, 80%, 47%)
CMYKcmyk(0%, 80%, 0%, 52.9%)
CIE-LABlab(29.42, 51.25, -32.10)
CIE-LCHlch(29.42, 60.47, 327.94°)
OKLaboklab(41.39% 0.1431 -0.089)
OKLCHoklch(41.39% 0.169 328.1)
XYZxyz(11.4624, 6.0033, 18.3207)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781878 #187818
analogous
#481878 #781878 #781848
triadic
#781878 #787818 #187878
tetradic
#781878 #784818 #187818 #184878
square
#781878 #784818 #187818 #184878
split-complementary
#781878 #487818 #187848
monochromatic
#1A051A #450E45 #781878 #AB22AB #D634D6

Accessibility & contrast

On white

9.54
#781878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#781878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781878
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781878#FFFFFF#000000##FFFFFF
##7818781.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#344A76
Tritanopia (blue-blind)
#7C2848
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781878;
/* rgb */ color: rgb(120, 24, 120);
/* oklch */ color: oklch(41.4% 0.169 328.1);
Tailwind
colors: {
  custom: {
    50: '#a2629f',
    500: '#781878',
    950: '#000000',
  },
}
SCSS
$custom: #781878;
$custom-light: #a2629f;
$custom-dark: #000000;
JSON
{
  "hex": "#781878",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41393,
    "c": 0.16851,
    "h": 328.1
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#781878
secondary
#3FAD3F
accent
#EA3E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781878

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

Preview Lab → · Contrast checker → · Palette generator →

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