#8A78FA#8A78FA

#8A78FA is a light, vivid blue. Relative luminance 0.257; OKLCH L 65.2% C 0.187 H 286.3°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A78FA
RGBrgb(138, 120, 250)
HSLhsl(248, 93%, 73%)
HSVhsv(248, 52%, 98%)
CMYKcmyk(44.8%, 52%, 0%, 2%)
CIE-LABlab(57.79, 38.44, -62.93)
CIE-LCHlch(57.79, 73.75, 301.42°)
OKLaboklab(65.17% 0.0525 -0.1791)
OKLCHoklch(65.17% 0.187 286.3)
XYZxyz(34.4480, 25.7369, 93.5766)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78FA #E8FA78
analogous
#78A7FA #8A78FA #CB78FA
triadic
#8A78FA #FA8A78 #78FA8A
tetradic
#8A78FA #FA78A7 #E8FA78 #78FACB
square
#8A78FA #FA78A7 #E8FA78 #78FACB
split-complementary
#8A78FA #FACB78 #A7FA78
monochromatic
#2909EF #573DF8 #8A78FA #BDB3FC #E5E1FE

Accessibility & contrast

On white

3.42
#8A78FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#8A78FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78FA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78FA#FFFFFF#000000##000000
##8A78FA1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#398EFF
Deuteranopia (green-blind)
#3687F7
Tritanopia (blue-blind)
#6694AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a78fa;
/* rgb */ color: rgb(138, 120, 250);
/* oklch */ color: oklch(65.2% 0.187 286.3);
Tailwind
colors: {
  custom: {
    50: '#b29ffd',
    500: '#8a78fa',
    950: '#000000',
  },
}
SCSS
$custom: #8a78fa;
$custom-light: #b29ffd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78fa",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 248.308,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.65171,
    "c": 0.18665,
    "h": 286.3
  },
  "luminance": 0.25738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A78FA

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

Preview Lab → · Contrast checker → · Palette generator →

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