#8A78E4#8A78E4

#8A78E4 is a light, vivid violet. Relative luminance 0.244; OKLCH L 63.8% C 0.158 H 288.8°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A78E4
RGBrgb(138, 120, 228)
HSLhsl(250, 67%, 68%)
HSVhsv(250, 47%, 89%)
CMYKcmyk(39.5%, 47.4%, 0%, 10.6%)
CIE-LABlab(56.52, 32.31, -52.73)
CIE-LCHlch(56.52, 61.84, 301.50°)
OKLaboklab(63.82% 0.0507 -0.1492)
OKLCHoklch(63.82% 0.158 288.8)
XYZxyz(31.1974, 24.4367, 76.4568)
Luminance0.2444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78E4 #D2E478
analogous
#789CE4 #8A78E4 #C078E4
triadic
#8A78E4 #E48A78 #78E48A
tetradic
#8A78E4 #E4789C #D2E478 #78E4C0
square
#8A78E4 #E4789C #D2E478 #78E4C0
split-complementary
#8A78E4 #E4C078 #9CE478
monochromatic
#3F26BC #5E45DA #8A78E4 #B6ABEE #E2DEF8

Accessibility & contrast

On white

3.57
#8A78E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#8A78E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78E4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78E4#FFFFFF#000000##000000
##8A78E41.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8AE8
Deuteranopia (green-blind)
#4F85E2
Tritanopia (blue-blind)
#718EA3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a78e4;
/* rgb */ color: rgb(138, 120, 228);
/* oklch */ color: oklch(63.8% 0.158 288.8);
Tailwind
colors: {
  custom: {
    50: '#b09fed',
    500: '#8a78e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a78e4;
$custom-light: #b09fed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78e4",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 250,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63817,
    "c": 0.15755,
    "h": 288.8
  },
  "luminance": 0.24438
}

Semantic roles & 50–950 ramp

primary
#8A78E4
secondary
#E7ECCC
accent
#CF17B0
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78E4

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

Preview Lab → · Contrast checker → · Palette generator →

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