#8A78FC#8A78FC

#8A78FC is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.3% C 0.189 H 286.1°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A78FC
RGBrgb(138, 120, 252)
HSLhsl(248, 96%, 73%)
HSVhsv(248, 52%, 99%)
CMYKcmyk(45.2%, 52.4%, 0%, 1.2%)
CIE-LABlab(57.91, 39.01, -63.84)
CIE-LCHlch(57.91, 74.82, 301.43°)
OKLaboklab(65.3% 0.0526 -0.1818)
OKLCHoklch(65.3% 0.189 286.1)
XYZxyz(34.7633, 25.8630, 95.2370)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78FC #EAFC78
analogous
#78A8FC #8A78FC #CC78FC
triadic
#8A78FC #FC8A78 #78FC8A
tetradic
#8A78FC #FC78A8 #EAFC78 #78FCCC
square
#8A78FC #FC78A8 #EAFC78 #78FCCC
split-complementary
#8A78FC #FCCC78 #A8FC78
monochromatic
#2605F4 #563CFB #8A78FC #BEB4FD #E5E1FE

Accessibility & contrast

On white

3.40
#8A78FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#8A78FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78FC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78FC#FFFFFF#000000##000000
##8A78FC1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#368FFF
Deuteranopia (green-blind)
#3387F9
Tritanopia (blue-blind)
#6595AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a78fc;
/* rgb */ color: rgb(138, 120, 252);
/* oklch */ color: oklch(65.3% 0.189 286.1);
Tailwind
colors: {
  custom: {
    50: '#b29ffe',
    500: '#8a78fc',
    950: '#000000',
  },
}
SCSS
$custom: #8a78fc;
$custom-light: #b29ffe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78fc",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 248.182,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65299,
    "c": 0.18925,
    "h": 286.1
  },
  "luminance": 0.25864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A78FC

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

Preview Lab → · Contrast checker → · Palette generator →

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