#8A7AEB#8A7AEB

#8A7AEB is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.6% C 0.164 H 287.4°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8A7AEB
RGBrgb(138, 122, 235)
HSLhsl(248, 74%, 70%)
HSVhsv(248, 48%, 92%)
CMYKcmyk(41.3%, 48.1%, 0%, 7.8%)
CIE-LABlab(57.39, 33.08, -55.26)
CIE-LCHlch(57.39, 64.40, 300.91°)
OKLaboklab(64.59% 0.049 -0.1566)
OKLCHoklch(64.59% 0.164 287.4)
XYZxyz(32.4319, 25.3193, 81.7595)
Luminance0.2532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AEB #DBEB7A
analogous
#7AA2EB #8A7AEB #C37AEB
triadic
#8A7AEB #EB8A7A #7AEB8A
tetradic
#8A7AEB #EB7AA2 #DBEB7A #7AEBC3
square
#8A7AEB #EB7AA2 #DBEB7A #7AEBC3
split-complementary
#8A7AEB #EBC37A #A2EB7A
monochromatic
#371FCC #5B45E3 #8A7AEB #B9AFF3 #E8E4FB

Accessibility & contrast

On white

3.46
#8A7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#8A7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AEB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AEB#FFFFFF#000000##000000
##8A7AEB1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#4C87E8
Tritanopia (blue-blind)
#6E91A7
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7aeb;
/* rgb */ color: rgb(138, 122, 235);
/* oklch */ color: oklch(64.6% 0.164 287.4);
Tailwind
colors: {
  custom: {
    50: '#b1a0f2',
    500: '#8a7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7aeb;
$custom-light: #b1a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7aeb",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 248.496,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.64591,
    "c": 0.16406,
    "h": 287.4
  },
  "luminance": 0.2532
}

Semantic roles & 50–950 ramp

primary
#8A7AEB
secondary
#ECF0D1
accent
#D610BA
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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