#8A78D4#8A78D4

#8A78D4 is a light, vivid violet. Relative luminance 0.236; OKLCH L 62.9% C 0.136 H 291.0°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8A78D4
RGBrgb(138, 120, 212)
HSLhsl(252, 52%, 65%)
HSVhsv(252, 43%, 83%)
CMYKcmyk(34.9%, 43.4%, 0%, 16.9%)
CIE-LABlab(55.67, 27.97, -45.08)
CIE-LCHlch(55.67, 53.05, 301.82°)
OKLaboklab(62.9% 0.0486 -0.1268)
OKLCHoklch(62.9% 0.136 291)
XYZxyz(29.0782, 23.5890, 65.2957)
Luminance0.2359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78D4 #C2D478
analogous
#7894D4 #8A78D4 #B878D4
triadic
#8A78D4 #D48A78 #78D48A
tetradic
#8A78D4 #D47894 #C2D478 #78D4B8
square
#8A78D4 #D47894 #C2D478 #78D4B8
split-complementary
#8A78D4 #D4B878 #94D478
monochromatic
#48339F #624AC5 #8A78D4 #B2A6E3 #DAD5F2

Accessibility & contrast

On white

3.67
#8A78D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#8A78D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78D4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78D4#FFFFFF#000000##000000
##8A78D41.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A87D7
Deuteranopia (green-blind)
#5B83D2
Tritanopia (blue-blind)
#78899C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a78d4;
/* rgb */ color: rgb(138, 120, 212);
/* oklch */ color: oklch(62.9% 0.136 291.0);
Tailwind
colors: {
  custom: {
    50: '#af9fe1',
    500: '#8a78d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a78d4;
$custom-light: #af9fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78d4",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 212
  },
  "hsl": {
    "h": 251.739,
    "s": 51.685,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62901,
    "c": 0.1358,
    "h": 291
  },
  "luminance": 0.2359
}

Semantic roles & 50–950 ramp

primary
#8A78D4
secondary
#DDE3C4
accent
#BF26A1
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A78D4

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

Preview Lab → · Contrast checker → · Palette generator →

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