#8A78DD#8A78DD

#8A78DD is a light, vivid violet. Relative luminance 0.241; OKLCH L 63.4% C 0.148 H 289.7°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A78DD
RGBrgb(138, 120, 221)
HSLhsl(251, 60%, 67%)
HSVhsv(251, 46%, 87%)
CMYKcmyk(37.6%, 45.7%, 0%, 13.3%)
CIE-LABlab(56.14, 30.39, -49.41)
CIE-LCHlch(56.14, 58.01, 301.60°)
OKLaboklab(63.41% 0.0499 -0.1394)
OKLCHoklch(63.41% 0.148 289.7)
XYZxyz(30.2453, 24.0558, 71.4423)
Luminance0.2406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78DD #CBDD78
analogous
#7899DD #8A78DD #BD78DD
triadic
#8A78DD #DD8A78 #78DD8A
tetradic
#8A78DD #DD7899 #CBDD78 #78DDBD
square
#8A78DD #DD7899 #CBDD78 #78DDBD
split-complementary
#8A78DD #DDBD78 #99DD78
monochromatic
#432CAF #6047D1 #8A78DD #B4A9E9 #DFDAF6

Accessibility & contrast

On white

3.61
#8A78DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8A78DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78DD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78DD#FFFFFF#000000##000000
##8A78DD1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5489E1
Deuteranopia (green-blind)
#5584DB
Tritanopia (blue-blind)
#748CA0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a78dd;
/* rgb */ color: rgb(138, 120, 221);
/* oklch */ color: oklch(63.4% 0.148 289.7);
Tailwind
colors: {
  custom: {
    50: '#b09fe8',
    500: '#8a78dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a78dd;
$custom-light: #b09fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78dd",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 250.693,
    "s": 59.763,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63409,
    "c": 0.1481,
    "h": 289.7
  },
  "luminance": 0.24057
}

Semantic roles & 50–950 ramp

primary
#8A78DD
secondary
#E3E9C8
accent
#C71EA9
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78DD

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

Preview Lab → · Contrast checker → · Palette generator →

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