#783178#783178

#783178 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.0% C 0.136 H 327.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#783178
RGBrgb(120, 49, 120)
HSLhsl(300, 42%, 33%)
HSVhsv(300, 59%, 47%)
CMYKcmyk(0%, 59.2%, 0%, 52.9%)
CIE-LABlab(33.02, 41.16, -26.41)
CIE-LCHlch(33.02, 48.90, 327.31°)
OKLaboklab(43.99% 0.1146 -0.0727)
OKLCHoklch(43.99% 0.136 327.6)
XYZxyz(12.2340, 7.5465, 18.5779)
Luminance0.0755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783178 #317831
analogous
#543178 #783178 #783154
triadic
#783178 #787831 #317878
tetradic
#783178 #785431 #317831 #315478
square
#783178 #785431 #317831 #315478
split-complementary
#783178 #547831 #317854
monochromatic
#210E21 #4D1F4D #783178 #A343A3 #C064C0

Accessibility & contrast

On white

8.37
#783178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#783178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783178
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783178#FFFFFF#000000##FFFFFF
##7831781.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487A
Deuteranopia (green-blind)
#415176
Tritanopia (blue-blind)
#7C3950
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #783178;
/* rgb */ color: rgb(120, 49, 120);
/* oklch */ color: oklch(44.0% 0.136 327.6);
Tailwind
colors: {
  custom: {
    50: '#a16e9f',
    500: '#783178',
    950: '#000000',
  },
}
SCSS
$custom: #783178;
$custom-light: #a16e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#783178",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.1357,
    "h": 327.6
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#783178
secondary
#5EA75E
accent
#D25656
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #783178

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

Preview Lab → · Contrast checker → · Palette generator →

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