#8A7BF1#8A7BF1

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

Color values

HEX#8A7BF1
RGBrgb(138, 123, 241)
HSLhsl(248, 81%, 71%)
HSVhsv(248, 49%, 95%)
CMYKcmyk(42.7%, 49%, 0%, 5.5%)
CIE-LABlab(57.96, 34.17, -57.67)
CIE-LCHlch(57.96, 67.04, 300.65°)
OKLaboklab(65.13% 0.0484 -0.1636)
OKLCHoklch(65.13% 0.171 286.5)
XYZxyz(33.4368, 25.9188, 86.4431)
Luminance0.2592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF1 #E2F17B
analogous
#7BA7F1 #8A7BF1 #C57BF1
triadic
#8A7BF1 #F18A7B #7BF18A
tetradic
#8A7BF1 #F17BA7 #E2F17B #7BF1C5
square
#8A7BF1 #F17BA7 #E2F17B #7BF1C5
split-complementary
#8A7BF1 #F1C57B #A7F17B
monochromatic
#3017DA #5944EB #8A7BF1 #BBB2F7 #E6E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7BF1#FFFFFF#000000##000000
##8A7BF11.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)
#498EF5
Deuteranopia (green-blind)
#4788EE
Tritanopia (blue-blind)
#6B94AB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7bf1;
/* rgb */ color: rgb(138, 123, 241);
/* oklch */ color: oklch(65.1% 0.171 286.5);
Tailwind
colors: {
  custom: {
    50: '#b1a1f6',
    500: '#8a7bf1',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf1;
$custom-light: #b1a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf1",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 241
  },
  "hsl": {
    "h": 247.627,
    "s": 80.822,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65131,
    "c": 0.17065,
    "h": 286.5
  },
  "luminance": 0.2592
}

Semantic roles & 50–950 ramp

primary
#8A7BF1
secondary
#EFF3D5
accent
#DD08C2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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