#8A78DF#8A78DF

#8A78DF is a light, vivid violet. Relative luminance 0.242; OKLCH L 63.5% C 0.151 H 289.4°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A78DF
RGBrgb(138, 120, 223)
HSLhsl(250, 62%, 67%)
HSVhsv(250, 46%, 87%)
CMYKcmyk(38.1%, 46.2%, 0%, 12.5%)
CIE-LABlab(56.25, 30.94, -50.36)
CIE-LCHlch(56.25, 59.10, 301.56°)
OKLaboklab(63.52% 0.0501 -0.1422)
OKLCHoklch(63.52% 0.151 289.4)
XYZxyz(30.5134, 24.1630, 72.8540)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78DF #CDDF78
analogous
#789ADF #8A78DF #BD78DF
triadic
#8A78DF #DF8A78 #78DF8A
tetradic
#8A78DF #DF789A #CDDF78 #78DFBD
square
#8A78DF #DF789A #CDDF78 #78DFBD
split-complementary
#8A78DF #DFBD78 #9ADF78
monochromatic
#422AB2 #5F47D3 #8A78DF #B5A9EB #E0DBF6

Accessibility & contrast

On white

3.60
#8A78DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8A78DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78DF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78DF#FFFFFF#000000##000000
##8A78DF1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5289E3
Deuteranopia (green-blind)
#5384DD
Tritanopia (blue-blind)
#738CA1
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a78df;
/* rgb */ color: rgb(138, 120, 223);
/* oklch */ color: oklch(63.5% 0.151 289.4);
Tailwind
colors: {
  custom: {
    50: '#b09fe9',
    500: '#8a78df',
    950: '#000000',
  },
}
SCSS
$custom: #8a78df;
$custom-light: #b09fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78df",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 250.485,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.63524,
    "c": 0.15081,
    "h": 289.4
  },
  "luminance": 0.24164
}

Semantic roles & 50–950 ramp

primary
#8A78DF
secondary
#E4EAC9
accent
#C91CAB
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78DF

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

Preview Lab → · Contrast checker → · Palette generator →

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