#8A7AF8#8A7AF8

#8A7AF8 is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.4% C 0.181 H 286.0°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF8
RGBrgb(138, 122, 248)
HSLhsl(248, 90%, 73%)
HSVhsv(248, 51%, 97%)
CMYKcmyk(44.4%, 50.8%, 0%, 2.7%)
CIE-LABlab(58.13, 36.72, -61.28)
CIE-LCHlch(58.13, 71.44, 300.93°)
OKLaboklab(65.39% 0.0501 -0.1742)
OKLCHoklch(65.39% 0.181 286)
XYZxyz(34.3791, 26.0982, 92.0148)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF8 #E8F87A
analogous
#7AA9F8 #8A7AF8 #C97AF8
triadic
#8A7AF8 #F88A7A #7AF88A
tetradic
#8A7AF8 #F87AA9 #E8F87A #7AF8C9
square
#8A7AF8 #F87AA9 #E8F87A #7AF8C9
split-complementary
#8A7AF8 #F8C97A #A9F87A
monochromatic
#290CEB #5740F5 #8A7AF8 #BDB4FB #E5E2FD

Accessibility & contrast

On white

3.38
#8A7AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#8A7AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF8
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF8#FFFFFF#000000##000000
##8A7AF81.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#408FFC
Deuteranopia (green-blind)
#3D88F5
Tritanopia (blue-blind)
#6795AE
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7af8;
/* rgb */ color: rgb(138, 122, 248);
/* oklch */ color: oklch(65.4% 0.181 286.0);
Tailwind
colors: {
  custom: {
    50: '#b2a0fb',
    500: '#8a7af8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af8;
$custom-light: #b2a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af8",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 247.619,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.65389,
    "c": 0.1813,
    "h": 286
  },
  "luminance": 0.261
}

Semantic roles & 50–950 ramp

primary
#8A7AF8
secondary
#F1F6D5
accent
#E600C8
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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