#8A78DA#8A78DA

#8A78DA is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.2% C 0.144 H 290.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A78DA
RGBrgb(138, 120, 218)
HSLhsl(251, 57%, 66%)
HSVhsv(251, 45%, 85%)
CMYKcmyk(36.7%, 45%, 0%, 14.5%)
CIE-LABlab(55.98, 29.58, -47.97)
CIE-LCHlch(55.98, 56.36, 301.66°)
OKLaboklab(63.24% 0.0495 -0.1352)
OKLCHoklch(63.24% 0.144 290.1)
XYZxyz(29.8492, 23.8974, 69.3560)
Luminance0.2390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78DA #C8DA78
analogous
#7897DA #8A78DA #BB78DA
triadic
#8A78DA #DA8A78 #78DA8A
tetradic
#8A78DA #DA7897 #C8DA78 #78DABB
square
#8A78DA #DA7897 #C8DA78 #78DABB
split-complementary
#8A78DA #DABB78 #97DA78
monochromatic
#452EA9 #6048CD #8A78DA #B4A8E7 #DDD8F4

Accessibility & contrast

On white

3.63
#8A78DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8A78DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78DA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78DA#FFFFFF#000000##000000
##8A78DA1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5688DE
Deuteranopia (green-blind)
#5784D8
Tritanopia (blue-blind)
#758B9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a78da;
/* rgb */ color: rgb(138, 120, 218);
/* oklch */ color: oklch(63.2% 0.144 290.1);
Tailwind
colors: {
  custom: {
    50: '#af9fe6',
    500: '#8a78da',
    950: '#000000',
  },
}
SCSS
$custom: #8a78da;
$custom-light: #af9fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78da",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 218
  },
  "hsl": {
    "h": 251.02,
    "s": 56.977,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63237,
    "c": 0.14401,
    "h": 290.1
  },
  "luminance": 0.23898
}

Semantic roles & 50–950 ramp

primary
#8A78DA
secondary
#E1E7C7
accent
#C521A6
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78DA

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

Preview Lab → · Contrast checker → · Palette generator →

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