#8A7BFB#8A7BFB

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

Color values

HEX#8A7BFB
RGBrgb(138, 123, 251)
HSLhsl(247, 94%, 73%)
HSVhsv(247, 51%, 98%)
CMYKcmyk(45%, 51%, 0%, 1.6%)
CIE-LABlab(58.54, 37.00, -62.28)
CIE-LCHlch(58.54, 72.44, 300.71°)
OKLaboklab(65.75% 0.0491 -0.1772)
OKLCHoklch(65.75% 0.184 285.5)
XYZxyz(34.9717, 26.5327, 94.5267)
Luminance0.2653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BFB #ECFB7B
analogous
#7BACFB #8A7BFB #CA7BFB
triadic
#8A7BFB #FB8A7B #7BFB8A
tetradic
#8A7BFB #FB7BAC #ECFB7B #7BFBCA
square
#8A7BFB #FB7BAC #ECFB7B #7BFBCA
split-complementary
#8A7BFB #FBCA7B #ACFB7B
monochromatic
#2307F4 #5540F9 #8A7BFB #BFB6FD #E5E1FE

Accessibility & contrast

On white

3.33
#8A7BFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#8A7BFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BFB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BFB#FFFFFF#000000##000000
##8A7BFB1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F90FF
Deuteranopia (green-blind)
#3B89F8
Tritanopia (blue-blind)
#6596AF
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7bfb;
/* rgb */ color: rgb(138, 123, 251);
/* oklch */ color: oklch(65.8% 0.184 285.5);
Tailwind
colors: {
  custom: {
    50: '#b2a1fd',
    500: '#8a7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bfb;
$custom-light: #b2a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bfb",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 247.031,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.65752,
    "c": 0.18386,
    "h": 285.5
  },
  "luminance": 0.26534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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