#8A7BF8#8A7BF8

#8A7BF8 is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.6% C 0.180 H 285.8°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF8
RGBrgb(138, 123, 248)
HSLhsl(247, 90%, 73%)
HSVhsv(247, 50%, 97%)
CMYKcmyk(44.4%, 50.4%, 0%, 2.7%)
CIE-LABlab(58.36, 36.15, -60.90)
CIE-LCHlch(58.36, 70.82, 300.69°)
OKLaboklab(65.56% 0.0489 -0.1731)
OKLCHoklch(65.56% 0.18 285.8)
XYZxyz(34.5026, 26.3451, 92.0559)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF8 #E9F87B
analogous
#7BAAF8 #8A7BF8 #C87BF8
triadic
#8A7BF8 #F88A7B #7BF88A
tetradic
#8A7BF8 #F87BAA #E9F87B #7BF8C8
square
#8A7BF8 #F87BAA #E9F87B #7BF8C8
split-complementary
#8A7BF8 #F8C87B #AAF87B
monochromatic
#270DEC #5641F5 #8A7BF8 #BEB5FB #E5E2FD

Accessibility & contrast

On white

3.35
#8A7BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#8A7BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF8#FFFFFF#000000##000000
##8A7BF81.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FC
Deuteranopia (green-blind)
#3F89F5
Tritanopia (blue-blind)
#6796AE
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf8;
/* rgb */ color: rgb(138, 123, 248);
/* oklch */ color: oklch(65.6% 0.180 285.8);
Tailwind
colors: {
  custom: {
    50: '#b2a1fb',
    500: '#8a7bf8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf8;
$custom-light: #b2a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf8",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 247.2,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65564,
    "c": 0.17991,
    "h": 285.8
  },
  "luminance": 0.26347
}

Semantic roles & 50–950 ramp

primary
#8A7BF8
secondary
#F2F6D5
accent
#E600CA
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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