#8A78CF#8A78CF

#8A78CF is a light, vivid violet. Relative luminance 0.233; OKLCH L 62.6% C 0.129 H 291.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A78CF
RGBrgb(138, 120, 207)
HSLhsl(252, 48%, 64%)
HSVhsv(252, 42%, 81%)
CMYKcmyk(33.3%, 42%, 0%, 18.8%)
CIE-LABlab(55.42, 26.64, -42.65)
CIE-LCHlch(55.42, 50.29, 301.99°)
OKLaboklab(62.63% 0.0478 -0.1197)
OKLCHoklch(62.63% 0.129 291.7)
XYZxyz(28.4573, 23.3406, 62.0253)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78CF #BDCF78
analogous
#7892CF #8A78CF #B678CF
triadic
#8A78CF #CF8A78 #78CF8A
tetradic
#8A78CF #CF7892 #BDCF78 #78CFB6
square
#8A78CF #CF7892 #BDCF78 #78CFB6
split-complementary
#8A78CF #CFB678 #92CF78
monochromatic
#4A3697 #634BBF #8A78CF #B1A5DF #D8D2EF

Accessibility & contrast

On white

3.70
#8A78CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#8A78CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78CF
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78CF#FFFFFF#000000##000000
##8A78CF1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D2
Deuteranopia (green-blind)
#5E83CD
Tritanopia (blue-blind)
#7A8899
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a78cf;
/* rgb */ color: rgb(138, 120, 207);
/* oklch */ color: oklch(62.6% 0.129 291.7);
Tailwind
colors: {
  custom: {
    50: '#af9fde',
    500: '#8a78cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a78cf;
$custom-light: #af9fde;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78cf",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 252.414,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62628,
    "c": 0.1289,
    "h": 291.7
  },
  "luminance": 0.23341
}

Semantic roles & 50–950 ramp

primary
#8A78CF
secondary
#DAE1C2
accent
#BB2B9D
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #8A78CF

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

Preview Lab → · Contrast checker → · Palette generator →

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