#8A7AFD#8A7AFD

#8A7AFD is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.7% C 0.188 H 285.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A7AFD
RGBrgb(138, 122, 253)
HSLhsl(247, 97%, 74%)
HSVhsv(247, 52%, 99%)
CMYKcmyk(45.5%, 51.8%, 0%, 0.8%)
CIE-LABlab(58.43, 38.14, -63.56)
CIE-LCHlch(58.43, 74.13, 300.97°)
OKLaboklab(65.71% 0.0504 -0.1809)
OKLCHoklch(65.71% 0.188 285.6)
XYZxyz(35.1652, 26.4127, 96.1547)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AFD #EDFD7A
analogous
#7AABFD #8A7AFD #CB7AFD
triadic
#8A7AFD #FD8A7A #7AFD8A
tetradic
#8A7AFD #FD7AAB #EDFD7A #7AFDCB
square
#8A7AFD #FD7AAB #EDFD7A #7AFDCB
split-complementary
#8A7AFD #FDCB7A #ABFD7A
monochromatic
#2204F9 #553EFC #8A7AFD #BFB6FE #E4E1FF

Accessibility & contrast

On white

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

On black

6.28
#8A7AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AFD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AFD#FFFFFF#000000##000000
##8A7AFD1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A90FF
Deuteranopia (green-blind)
#3689FA
Tritanopia (blue-blind)
#6496B0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7afd;
/* rgb */ color: rgb(138, 122, 253);
/* oklch */ color: oklch(65.7% 0.188 285.6);
Tailwind
colors: {
  custom: {
    50: '#b2a1ff',
    500: '#8a7afd',
    950: '#000000',
  },
}
SCSS
$custom: #8a7afd;
$custom-light: #b2a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7afd",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 247.328,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.65706,
    "c": 0.18783,
    "h": 285.6
  },
  "luminance": 0.26414
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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