#8A78ED#8A78ED

#8A78ED is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.4% C 0.170 H 287.7°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A78ED
RGBrgb(138, 120, 237)
HSLhsl(249, 76%, 70%)
HSVhsv(249, 49%, 93%)
CMYKcmyk(41.8%, 49.4%, 0%, 7.1%)
CIE-LABlab(57.03, 34.80, -56.94)
CIE-LCHlch(57.03, 66.73, 301.43°)
OKLaboklab(64.36% 0.0516 -0.1615)
OKLCHoklch(64.36% 0.17 287.7)
XYZxyz(32.4795, 24.9495, 83.2088)
Luminance0.2495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78ED #DBED78
analogous
#78A0ED #8A78ED #C578ED
triadic
#8A78ED #ED8A78 #78ED8A
tetradic
#8A78ED #ED78A0 #DBED78 #78EDC5
square
#8A78ED #ED78A0 #DBED78 #78EDC5
split-complementary
#8A78ED #EDC578 #A0ED78
monochromatic
#371CCF #5B42E6 #8A78ED #B9AEF4 #E8E4FB

Accessibility & contrast

On white

3.51
#8A78ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#8A78ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78ED
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78ED#FFFFFF#000000##000000
##8A78ED1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#478CF1
Deuteranopia (green-blind)
#4686EA
Tritanopia (blue-blind)
#6D90A7
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a78ed;
/* rgb */ color: rgb(138, 120, 237);
/* oklch */ color: oklch(64.4% 0.170 287.7);
Tailwind
colors: {
  custom: {
    50: '#b19ff3',
    500: '#8a78ed',
    950: '#000000',
  },
}
SCSS
$custom: #8a78ed;
$custom-light: #b19ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78ed",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 237
  },
  "hsl": {
    "h": 249.231,
    "s": 76.471,
    "l": 70
  },
  "oklch": {
    "l": 0.64358,
    "c": 0.16958,
    "h": 287.7
  },
  "luminance": 0.24951
}

Semantic roles & 50–950 ramp

primary
#8A78ED
secondary
#ECF1D0
accent
#D90DB9
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78ED

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

Preview Lab → · Contrast checker → · Palette generator →

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