#8A78CE#8A78CE

#8A78CE is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.6% C 0.128 H 291.9°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A78CE
RGBrgb(138, 120, 206)
HSLhsl(253, 47%, 64%)
HSVhsv(253, 42%, 81%)
CMYKcmyk(33%, 41.7%, 0%, 19.2%)
CIE-LABlab(55.37, 26.38, -42.16)
CIE-LCHlch(55.37, 49.74, 302.03°)
OKLaboklab(62.57% 0.0476 -0.1183)
OKLCHoklch(62.57% 0.128 291.9)
XYZxyz(28.3354, 23.2919, 61.3834)
Luminance0.2329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78CE #BCCE78
analogous
#7891CE #8A78CE #B578CE
triadic
#8A78CE #CE8A78 #78CE8A
tetradic
#8A78CE #CE7891 #BCCE78 #78CEB5
square
#8A78CE #CE7891 #BCCE78 #78CEB5
split-complementary
#8A78CE #CEB578 #91CE78
monochromatic
#4A3695 #634BBE #8A78CE #B1A5DE #D8D2EF

Accessibility & contrast

On white

3.71
#8A78CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#8A78CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78CE
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78CE#FFFFFF#000000##000000
##8A78CE1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D1
Deuteranopia (green-blind)
#5F83CC
Tritanopia (blue-blind)
#7A8899
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a78ce;
/* rgb */ color: rgb(138, 120, 206);
/* oklch */ color: oklch(62.6% 0.128 291.9);
Tailwind
colors: {
  custom: {
    50: '#ae9fdd',
    500: '#8a78ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ce;
$custom-light: #ae9fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ce",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 206
  },
  "hsl": {
    "h": 252.558,
    "s": 46.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.62574,
    "c": 0.12752,
    "h": 291.9
  },
  "luminance": 0.23292
}

Semantic roles & 50–950 ramp

primary
#8A78CE
secondary
#DAE0C2
accent
#BA2C9C
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A78CE

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

Preview Lab → · Contrast checker → · Palette generator →

#8A78CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva