#782178#782178

#782178 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.159 H 327.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#782178
RGBrgb(120, 33, 120)
HSLhsl(300, 57%, 30%)
HSVhsv(300, 73%, 47%)
CMYKcmyk(0%, 72.5%, 0%, 52.9%)
CIE-LABlab(30.49, 48.19, -30.40)
CIE-LCHlch(30.49, 56.98, 327.75°)
OKLaboklab(42.16% 0.1344 -0.0842)
OKLCHoklch(42.16% 0.159 327.9)
XYZxyz(11.6796, 6.4377, 18.3931)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782178 #217821
analogous
#4C2178 #782178 #78214D
triadic
#782178 #787821 #217878
tetradic
#782178 #784D21 #217821 #214C78
square
#782178 #784D21 #217821 #214C78
split-complementary
#782178 #4D7821 #21784D
monochromatic
#180718 #481448 #782178 #A82EA8 #CC47CC

Accessibility & contrast

On white

9.18
#782178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#782178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782178
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782178#FFFFFF#000000##FFFFFF
##7821781.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417A
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#7C2E4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #782178;
/* rgb */ color: rgb(120, 33, 120);
/* oklch */ color: oklch(42.2% 0.159 327.9);
Tailwind
colors: {
  custom: {
    50: '#a2659f',
    500: '#782178',
    950: '#000000',
  },
}
SCSS
$custom: #782178;
$custom-light: #a2659f;
$custom-dark: #000000;
JSON
{
  "hex": "#782178",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.15858,
    "h": 327.9
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#782178
secondary
#4AAB4A
accent
#E04848
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782178

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

Preview Lab → · Contrast checker → · Palette generator →

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