#8A7AFE#8A7AFE

#8A7AFE is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.8% C 0.189 H 285.5°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A7AFE
RGBrgb(138, 122, 254)
HSLhsl(247, 99%, 74%)
HSVhsv(247, 52%, 100%)
CMYKcmyk(45.7%, 52%, 0%, 0.4%)
CIE-LABlab(58.49, 38.42, -64.01)
CIE-LCHlch(58.49, 74.66, 300.97°)
OKLaboklab(65.77% 0.0505 -0.1823)
OKLCHoklch(65.77% 0.189 285.5)
XYZxyz(35.3249, 26.4765, 96.9959)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AFE #EEFE7A
analogous
#7AACFE #8A7AFE #CC7AFE
triadic
#8A7AFE #FE8A7A #7AFE8A
tetradic
#8A7AFE #FE7AAC #EEFE7A #7AFECC
square
#8A7AFE #FE7AAC #EEFE7A #7AFECC
split-complementary
#8A7AFE #FECC7A #ACFE7A
monochromatic
#2002FC #553DFE #8A7AFE #BFB7FE #E4E1FF

Accessibility & contrast

On white

3.34
#8A7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#8A7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AFE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AFE#FFFFFF#000000##000000
##8A7AFE1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3990FF
Deuteranopia (green-blind)
#3489FB
Tritanopia (blue-blind)
#6497B1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7afe;
/* rgb */ color: rgb(138, 122, 254);
/* oklch */ color: oklch(65.8% 0.189 285.5);
Tailwind
colors: {
  custom: {
    50: '#b3a1ff',
    500: '#8a7afe',
    950: '#000000',
  },
}
SCSS
$custom: #8a7afe;
$custom-light: #b3a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7afe",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 247.273,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.6577,
    "c": 0.18913,
    "h": 285.5
  },
  "luminance": 0.26478
}

Semantic roles & 50–950 ramp

primary
#8A7AFE
secondary
#F3F7D4
accent
#E600CA
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #8A7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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