#8A78FB#8A78FB

#8A78FB is a light, vivid blue. Relative luminance 0.258; OKLCH L 65.2% C 0.188 H 286.2°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A78FB
RGBrgb(138, 120, 251)
HSLhsl(248, 94%, 73%)
HSVhsv(248, 52%, 98%)
CMYKcmyk(45%, 52.2%, 0%, 1.6%)
CIE-LABlab(57.85, 38.73, -63.39)
CIE-LCHlch(57.85, 74.28, 301.42°)
OKLaboklab(65.24% 0.0526 -0.1804)
OKLCHoklch(65.24% 0.188 286.2)
XYZxyz(34.6052, 25.7998, 94.4046)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78FB #E9FB78
analogous
#78A8FB #8A78FB #CB78FB
triadic
#8A78FB #FB8A78 #78FB8A
tetradic
#8A78FB #FB78A8 #E9FB78 #78FBCB
square
#8A78FB #FB78A8 #E9FB78 #78FBCB
split-complementary
#8A78FB #FBCB78 #A8FB78
monochromatic
#2707F1 #563DF9 #8A78FB #BEB3FD #E5E1FE

Accessibility & contrast

On white

3.41
#8A78FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A78FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78FB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78FB#FFFFFF#000000##000000
##8A78FB1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#378EFF
Deuteranopia (green-blind)
#3587F8
Tritanopia (blue-blind)
#6694AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a78fb;
/* rgb */ color: rgb(138, 120, 251);
/* oklch */ color: oklch(65.2% 0.188 286.2);
Tailwind
colors: {
  custom: {
    50: '#b29ffd',
    500: '#8a78fb',
    950: '#000000',
  },
}
SCSS
$custom: #8a78fb;
$custom-light: #b29ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78fb",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 248.244,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65235,
    "c": 0.18795,
    "h": 286.2
  },
  "luminance": 0.25801
}

Semantic roles & 50–950 ramp

primary
#8A78FB
secondary
#F2F6D5
accent
#E600C6
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #8A78FB

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

Preview Lab → · Contrast checker → · Palette generator →

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