#8A7FEB#8A7FEB

#8A7FEB is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.5% C 0.157 H 285.9°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A7FEB
RGBrgb(138, 127, 235)
HSLhsl(246, 73%, 71%)
HSVhsv(246, 46%, 92%)
CMYKcmyk(41.3%, 46%, 0%, 7.8%)
CIE-LABlab(58.58, 30.16, -53.35)
CIE-LCHlch(58.58, 61.29, 299.48°)
OKLaboklab(65.49% 0.0429 -0.151)
OKLCHoklch(65.49% 0.157 285.9)
XYZxyz(33.0617, 26.5789, 81.9694)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FEB #E0EB7F
analogous
#7FAAEB #8A7FEB #C07FEB
triadic
#8A7FEB #EB8A7F #7FEB8A
tetradic
#8A7FEB #EB7FAA #E0EB7F #7FEBC0
square
#8A7FEB #EB7FAA #E0EB7F #7FEBC0
split-complementary
#8A7FEB #EBC07F #AAEB7F
monochromatic
#3220CF #5A4AE3 #8A7FEB #BAB4F3 #E7E5FB

Accessibility & contrast

On white

3.32
#8A7FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#8A7FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FEB
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FEB#FFFFFF#000000##000000
##8A7FEB1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590EF
Deuteranopia (green-blind)
#538AE9
Tritanopia (blue-blind)
#6D95AA
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7feb;
/* rgb */ color: rgb(138, 127, 235);
/* oklch */ color: oklch(65.5% 0.157 285.9);
Tailwind
colors: {
  custom: {
    50: '#b1a4f2',
    500: '#8a7feb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7feb;
$custom-light: #b1a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7feb",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 246.111,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65492,
    "c": 0.15693,
    "h": 285.9
  },
  "luminance": 0.2658
}

Semantic roles & 50–950 ramp

primary
#8A7FEB
secondary
#EEF1D5
accent
#D510C1
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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