#8A7CF8#8A7CF8

#8A7CF8 is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.7% C 0.179 H 285.5°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A7CF8
RGBrgb(138, 124, 248)
HSLhsl(247, 90%, 73%)
HSVhsv(247, 50%, 97%)
CMYKcmyk(44.4%, 50%, 0%, 2.7%)
CIE-LABlab(58.60, 35.57, -60.53)
CIE-LCHlch(58.60, 70.20, 300.44°)
OKLaboklab(65.74% 0.0478 -0.172)
OKLCHoklch(65.74% 0.179 285.5)
XYZxyz(34.6272, 26.5944, 92.0975)
Luminance0.2660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CF8 #EAF87C
analogous
#7CACF8 #8A7CF8 #C87CF8
triadic
#8A7CF8 #F88A7C #7CF88A
tetradic
#8A7CF8 #F87CAC #EAF87C #7CF8C8
square
#8A7CF8 #F87CAC #EAF87C #7CF8C8
split-complementary
#8A7CF8 #F8C87C #ACF87C
monochromatic
#260DED #5642F5 #8A7CF8 #BEB6FB #E5E2FD

Accessibility & contrast

On white

3.32
#8A7CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#8A7CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CF8
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CF8#FFFFFF#000000##000000
##8A7CF81.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FC
Deuteranopia (green-blind)
#4189F5
Tritanopia (blue-blind)
#6796AE
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7cf8;
/* rgb */ color: rgb(138, 124, 248);
/* oklch */ color: oklch(65.7% 0.179 285.5);
Tailwind
colors: {
  custom: {
    50: '#b2a2fb',
    500: '#8a7cf8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cf8;
$custom-light: #b2a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cf8",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 246.774,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65739,
    "c": 0.17854,
    "h": 285.5
  },
  "luminance": 0.26596
}

Semantic roles & 50–950 ramp

primary
#8A7CF8
secondary
#F2F6D5
accent
#E600CC
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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