#8A7AF6#8A7AF6

#8A7AF6 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.3% C 0.179 H 286.2°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF6
RGBrgb(138, 122, 246)
HSLhsl(248, 87%, 72%)
HSVhsv(248, 50%, 96%)
CMYKcmyk(43.9%, 50.4%, 0%, 3.5%)
CIE-LABlab(58.01, 36.16, -60.36)
CIE-LCHlch(58.01, 70.36, 300.92°)
OKLaboklab(65.26% 0.05 -0.1715)
OKLCHoklch(65.26% 0.179 286.2)
XYZxyz(34.0705, 25.9748, 90.3894)
Luminance0.2598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF6 #E6F67A
analogous
#7AA8F6 #8A7AF6 #C87AF6
triadic
#8A7AF6 #F68A7A #7AF68A
tetradic
#8A7AF6 #F67AA8 #E6F67A #7AF6C8
square
#8A7AF6 #F67AA8 #E6F67A #7AF6C8
split-complementary
#8A7AF6 #F6C87A #A8F67A
monochromatic
#2B10E6 #5841F2 #8A7AF6 #BCB3FA #E6E2FD

Accessibility & contrast

On white

3.39
#8A7AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#8A7AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF6
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF6#FFFFFF#000000##000000
##8A7AF61.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFA
Deuteranopia (green-blind)
#4088F3
Tritanopia (blue-blind)
#6894AD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7af6;
/* rgb */ color: rgb(138, 122, 246);
/* oklch */ color: oklch(65.3% 0.179 286.2);
Tailwind
colors: {
  custom: {
    50: '#b2a0fa',
    500: '#8a7af6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af6;
$custom-light: #b2a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af6",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 247.742,
    "s": 87.324,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65264,
    "c": 0.17867,
    "h": 286.2
  },
  "luminance": 0.25976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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