#8A7BF5#8A7BF5

#8A7BF5 is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.4% C 0.176 H 286.1°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF5
RGBrgb(138, 123, 245)
HSLhsl(247, 86%, 72%)
HSVhsv(247, 50%, 96%)
CMYKcmyk(43.7%, 49.8%, 0%, 3.9%)
CIE-LABlab(58.19, 35.30, -59.52)
CIE-LCHlch(58.19, 69.20, 300.67°)
OKLaboklab(65.38% 0.0487 -0.1691)
OKLCHoklch(65.38% 0.176 286.1)
XYZxyz(34.0409, 26.1604, 89.6243)
Luminance0.2616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF5 #E6F57B
analogous
#7BA9F5 #8A7BF5 #C77BF5
triadic
#8A7BF5 #F58A7B #7BF58A
tetradic
#8A7BF5 #F57BA9 #E6F57B #7BF5C7
square
#8A7BF5 #F57BA9 #E6F57B #7BF5C7
split-complementary
#8A7BF5 #F5C77B #A9F57B
monochromatic
#2B11E4 #5842F1 #8A7BF5 #BCB4F9 #E6E3FD

Accessibility & contrast

On white

3.37
#8A7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#8A7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF5#FFFFFF#000000##000000
##8A7BF51.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#458FF9
Deuteranopia (green-blind)
#4388F2
Tritanopia (blue-blind)
#6995AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf5;
/* rgb */ color: rgb(138, 123, 245);
/* oklch */ color: oklch(65.4% 0.176 286.1);
Tailwind
colors: {
  custom: {
    50: '#b2a1f9',
    500: '#8a7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf5;
$custom-light: #b2a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf5",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 247.377,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65377,
    "c": 0.17596,
    "h": 286.1
  },
  "luminance": 0.26162
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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