#78319E#78319E

#78319E is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.174 H 311.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#78319E
RGBrgb(120, 49, 158)
HSLhsl(279, 53%, 41%)
HSVhsv(279, 69%, 62%)
CMYKcmyk(24.1%, 69%, 0%, 38%)
CIE-LABlab(35.32, 49.09, -46.16)
CIE-LCHlch(35.32, 67.38, 316.76°)
OKLaboklab(46.39% 0.1148 -0.1303)
OKLCHoklch(46.39% 0.174 311.4)
XYZxyz(15.0144, 8.6587, 33.2215)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78319E #579E31
analogous
#42319E #78319E #9E318D
triadic
#78319E #9E7831 #319E78
tetradic
#78319E #9E4231 #579E31 #318D9E
square
#78319E #9E4231 #579E31 #318D9E
split-complementary
#78319E #8D9E31 #319E42
monochromatic
#311441 #55236F #78319E #9946C6 #B375D4

Accessibility & contrast

On white

7.69
#78319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#78319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78319E
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78319E#FFFFFF#000000##FFFFFF
##78319E1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#24549C
Tritanopia (blue-blind)
#734863
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #78319e;
/* rgb */ color: rgb(120, 49, 158);
/* oklch */ color: oklch(46.4% 0.174 311.4);
Tailwind
colors: {
  custom: {
    50: '#a36fbb',
    500: '#78319e',
    950: '#000000',
  },
}
SCSS
$custom: #78319e;
$custom-light: #a36fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#78319e",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 279.083,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46393,
    "c": 0.17366,
    "h": 311.4
  },
  "luminance": 0.08658
}

Semantic roles & 50–950 ramp

primary
#78319E
secondary
#8ABC6E
accent
#DC4C7E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #78319E

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

Preview Lab → · Contrast checker → · Palette generator →

#78319E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva