#8A7AFA#8A7AFA

#8A7AFA is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.5% C 0.184 H 285.8°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A7AFA
RGBrgb(138, 122, 250)
HSLhsl(248, 93%, 73%)
HSVhsv(248, 51%, 98%)
CMYKcmyk(44.8%, 51.2%, 0%, 2%)
CIE-LABlab(58.25, 37.29, -62.19)
CIE-LCHlch(58.25, 72.51, 300.95°)
OKLaboklab(65.52% 0.0502 -0.1769)
OKLCHoklch(65.52% 0.184 285.8)
XYZxyz(34.6911, 26.2230, 93.6576)
Luminance0.2622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AFA #EAFA7A
analogous
#7AAAFA #8A7AFA #CA7AFA
triadic
#8A7AFA #FA8A7A #7AFA8A
tetradic
#8A7AFA #FA7AAA #EAFA7A #7AFACA
square
#8A7AFA #FA7AAA #EAFA7A #7AFACA
split-complementary
#8A7AFA #FACA7A #AAFA7A
monochromatic
#2609F1 #563FF8 #8A7AFA #BEB5FC #E5E2FE

Accessibility & contrast

On white

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

On black

6.24
#8A7AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AFA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AFA#FFFFFF#000000##000000
##8A7AFA1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E90FE
Deuteranopia (green-blind)
#3A88F7
Tritanopia (blue-blind)
#6695AF
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7afa;
/* rgb */ color: rgb(138, 122, 250);
/* oklch */ color: oklch(65.5% 0.184 285.8);
Tailwind
colors: {
  custom: {
    50: '#b2a0fd',
    500: '#8a7afa',
    950: '#000000',
  },
}
SCSS
$custom: #8a7afa;
$custom-light: #b2a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7afa",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 247.5,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65515,
    "c": 0.18392,
    "h": 285.8
  },
  "luminance": 0.26224
}

Semantic roles & 50–950 ramp

primary
#8A7AFA
secondary
#F2F6D5
accent
#E600C9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #8A7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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