#8A7AF5#8A7AF5

#8A7AF5 is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.2% C 0.177 H 286.3°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF5
RGBrgb(138, 122, 245)
HSLhsl(248, 86%, 72%)
HSVhsv(248, 50%, 96%)
CMYKcmyk(43.7%, 50.2%, 0%, 3.9%)
CIE-LABlab(57.95, 35.88, -59.90)
CIE-LCHlch(57.95, 69.82, 300.92°)
OKLaboklab(65.2% 0.0499 -0.1702)
OKLCHoklch(65.2% 0.177 286.3)
XYZxyz(33.9175, 25.9136, 89.5832)
Luminance0.2591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF5 #E5F57A
analogous
#7AA8F5 #8A7AF5 #C87AF5
triadic
#8A7AF5 #F58A7A #7AF58A
tetradic
#8A7AF5 #F57AA8 #E5F57A #7AF5C8
square
#8A7AF5 #F57AA8 #E5F57A #7AF5C8
split-complementary
#8A7AF5 #F5C87A #A8F57A
monochromatic
#2C11E3 #5841F1 #8A7AF5 #BCB3F9 #E6E3FD

Accessibility & contrast

On white

3.40
#8A7AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#8A7AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF5#FFFFFF#000000##000000
##8A7AF51.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#438FF9
Deuteranopia (green-blind)
#4188F2
Tritanopia (blue-blind)
#6994AC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7af5;
/* rgb */ color: rgb(138, 122, 245);
/* oklch */ color: oklch(65.2% 0.177 286.3);
Tailwind
colors: {
  custom: {
    50: '#b2a0f9',
    500: '#8a7af5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af5;
$custom-light: #b2a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af5",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 247.805,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65202,
    "c": 0.17735,
    "h": 286.3
  },
  "luminance": 0.25915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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