#8A7BF7#8A7BF7

#8A7BF7 is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.5% C 0.179 H 285.9°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF7
RGBrgb(138, 123, 247)
HSLhsl(247, 89%, 73%)
HSVhsv(247, 50%, 97%)
CMYKcmyk(44.1%, 50.2%, 0%, 3.1%)
CIE-LABlab(58.30, 35.86, -60.44)
CIE-LCHlch(58.30, 70.28, 300.68°)
OKLaboklab(65.5% 0.0489 -0.1718)
OKLCHoklch(65.5% 0.179 285.9)
XYZxyz(34.3478, 26.2832, 91.2410)
Luminance0.2628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF7 #E8F77B
analogous
#7BAAF7 #8A7BF7 #C87BF7
triadic
#8A7BF7 #F78A7B #7BF78A
tetradic
#8A7BF7 #F77BAA #E8F77B #7BF7C8
square
#8A7BF7 #F77BAA #E8F77B #7BF7C8
split-complementary
#8A7BF7 #F7C87B #AAF77B
monochromatic
#290EE9 #5741F4 #8A7BF7 #BDB5FA #E5E2FD

Accessibility & contrast

On white

3.36
#8A7BF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#8A7BF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF7
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF7#FFFFFF#000000##000000
##8A7BF71.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FB
Deuteranopia (green-blind)
#4089F4
Tritanopia (blue-blind)
#6895AE
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf7;
/* rgb */ color: rgb(138, 123, 247);
/* oklch */ color: oklch(65.5% 0.179 285.9);
Tailwind
colors: {
  custom: {
    50: '#b2a1fa',
    500: '#8a7bf7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf7;
$custom-light: #b2a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf7",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 247
  },
  "hsl": {
    "h": 247.258,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.65501,
    "c": 0.17861,
    "h": 285.9
  },
  "luminance": 0.26285
}

Semantic roles & 50–950 ramp

primary
#8A7BF7
secondary
#F1F5D6
accent
#E500C9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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