#8A7AF7#8A7AF7

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

Color values

HEX#8A7AF7
RGBrgb(138, 122, 247)
HSLhsl(248, 89%, 72%)
HSVhsv(248, 51%, 97%)
CMYKcmyk(44.1%, 50.6%, 0%, 3.1%)
CIE-LABlab(58.07, 36.44, -60.82)
CIE-LCHlch(58.07, 70.90, 300.93°)
OKLaboklab(65.33% 0.05 -0.1729)
OKLCHoklch(65.33% 0.18 286.1)
XYZxyz(34.2244, 26.0363, 91.1999)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF7 #E7F77A
analogous
#7AA9F7 #8A7AF7 #C97AF7
triadic
#8A7AF7 #F78A7A #7AF78A
tetradic
#8A7AF7 #F77AA9 #E7F77A #7AF7C9
square
#8A7AF7 #F77AA9 #E7F77A #7AF7C9
split-complementary
#8A7AF7 #F7C97A #A9F77A
monochromatic
#2A0EE9 #5740F4 #8A7AF7 #BDB4FA #E6E2FD

Accessibility & contrast

On white

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

On black

6.21
#8A7AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF7
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF7#FFFFFF#000000##000000
##8A7AF71.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFB
Deuteranopia (green-blind)
#3E88F4
Tritanopia (blue-blind)
#6895AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7af7;
/* rgb */ color: rgb(138, 122, 247);
/* oklch */ color: oklch(65.3% 0.180 286.1);
Tailwind
colors: {
  custom: {
    50: '#b2a0fa',
    500: '#8a7af7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af7;
$custom-light: #b2a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af7",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 247.68,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65327,
    "c": 0.17998,
    "h": 286.1
  },
  "luminance": 0.26038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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