#78339D#78339D

#78339D is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.170 H 311.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#78339D
RGBrgb(120, 51, 157)
HSLhsl(279, 51%, 41%)
HSVhsv(279, 68%, 62%)
CMYKcmyk(23.6%, 67.5%, 0%, 38.4%)
CIE-LABlab(35.59, 47.93, -45.13)
CIE-LCHlch(35.59, 65.83, 316.72°)
OKLaboklab(46.57% 0.1125 -0.1273)
OKLCHoklch(46.57% 0.17 311.5)
XYZxyz(15.0142, 8.7954, 32.7985)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#78339D #589D33
analogous
#43339D #78339D #9D338D
triadic
#78339D #9D7833 #339D78
tetradic
#78339D #9D4333 #589D33 #338D9D
square
#78339D #9D4333 #589D33 #338D9D
split-complementary
#78339D #8D9D33 #339D43
monochromatic
#311541 #55246F #78339D #9949C4 #B377D3

Accessibility & contrast

On white

7.61
#78339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#78339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #78339D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##78339D#FFFFFF#000000##FFFFFF
##78339D1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#27559B
Tritanopia (blue-blind)
#734964
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #78339d;
/* rgb */ color: rgb(120, 51, 157);
/* oklch */ color: oklch(46.6% 0.170 311.5);
Tailwind
colors: {
  custom: {
    50: '#a270ba',
    500: '#78339d',
    950: '#000000',
  },
}
SCSS
$custom: #78339d;
$custom-light: #a270ba;
$custom-dark: #000000;
JSON
{
  "hex": "#78339d",
  "rgb": {
    "r": 120,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 279.057,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46565,
    "c": 0.16992,
    "h": 311.5
  },
  "luminance": 0.08795
}

Semantic roles & 50–950 ramp

primary
#78339D
secondary
#8BBB70
accent
#DA4D7F
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #78339D

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

Preview Lab → · Contrast checker → · Palette generator →

#78339D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva