#8A78DB#8A78DB

#8A78DB is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.3% C 0.145 H 290.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A78DB
RGBrgb(138, 120, 219)
HSLhsl(251, 58%, 66%)
HSVhsv(251, 45%, 86%)
CMYKcmyk(37%, 45.2%, 0%, 14.1%)
CIE-LABlab(56.04, 29.85, -48.45)
CIE-LCHlch(56.04, 56.91, 301.64°)
OKLaboklab(63.29% 0.0496 -0.1366)
OKLCHoklch(63.29% 0.145 290)
XYZxyz(29.9804, 23.9499, 70.0473)
Luminance0.2395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78DB #C9DB78
analogous
#7898DB #8A78DB #BC78DB
triadic
#8A78DB #DB8A78 #78DB8A
tetradic
#8A78DB #DB7898 #C9DB78 #78DBBC
square
#8A78DB #DB7898 #C9DB78 #78DBBC
split-complementary
#8A78DB #DBBC78 #98DB78
monochromatic
#442EAB #6048CE #8A78DB #B4A8E8 #DED9F5

Accessibility & contrast

On white

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

On black

5.79
#8A78DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78DB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78DB#FFFFFF#000000##000000
##8A78DB1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5588DF
Deuteranopia (green-blind)
#5684D9
Tritanopia (blue-blind)
#758B9F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a78db;
/* rgb */ color: rgb(138, 120, 219);
/* oklch */ color: oklch(63.3% 0.145 290.0);
Tailwind
colors: {
  custom: {
    50: '#af9fe6',
    500: '#8a78db',
    950: '#000000',
  },
}
SCSS
$custom: #8a78db;
$custom-light: #af9fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78db",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 219
  },
  "hsl": {
    "h": 250.909,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.63294,
    "c": 0.14537,
    "h": 290
  },
  "luminance": 0.23951
}

Semantic roles & 50–950 ramp

primary
#8A78DB
secondary
#E2E7C7
accent
#C520A7
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A78DB

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

Preview Lab → · Contrast checker → · Palette generator →

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