#8A78F2#8A78F2

#8A78F2 is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.7% C 0.176 H 287.2°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A78F2
RGBrgb(138, 120, 242)
HSLhsl(249, 82%, 71%)
HSVhsv(249, 50%, 95%)
CMYKcmyk(43%, 50.4%, 0%, 5.1%)
CIE-LABlab(57.31, 36.19, -59.26)
CIE-LCHlch(57.31, 69.44, 301.41°)
OKLaboklab(64.67% 0.052 -0.1683)
OKLCHoklch(64.67% 0.176 287.2)
XYZxyz(33.2202, 25.2458, 87.1097)
Luminance0.2525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A78F2 #E0F278
analogous
#78A3F2 #8A78F2 #C778F2
triadic
#8A78F2 #F28A78 #78F28A
tetradic
#8A78F2 #F278A3 #E0F278 #78F2C7
square
#8A78F2 #F278A3 #E0F278 #78F2C7
split-complementary
#8A78F2 #F2C778 #A3F278
monochromatic
#3215DB #5A40ED #8A78F2 #BAB0F7 #E7E3FC

Accessibility & contrast

On white

3.47
#8A78F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#8A78F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A78F2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A78F2#FFFFFF#000000##000000
##8A78F21.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#428DF6
Deuteranopia (green-blind)
#4186EF
Tritanopia (blue-blind)
#6B92AA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a78f2;
/* rgb */ color: rgb(138, 120, 242);
/* oklch */ color: oklch(64.7% 0.176 287.2);
Tailwind
colors: {
  custom: {
    50: '#b19ff7',
    500: '#8a78f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a78f2;
$custom-light: #b19ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a78f2",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 248.852,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.64666,
    "c": 0.17618,
    "h": 287.2
  },
  "luminance": 0.25247
}

Semantic roles & 50–950 ramp

primary
#8A78F2
secondary
#EEF3D3
accent
#DF07BF
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #8A78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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