#8A7EEC#8A7EEC

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

Color values

HEX#8A7EEC
RGBrgb(138, 126, 236)
HSLhsl(247, 74%, 71%)
HSVhsv(247, 47%, 93%)
CMYKcmyk(41.5%, 46.6%, 0%, 7.5%)
CIE-LABlab(58.40, 31.03, -54.20)
CIE-LCHlch(58.40, 62.45, 299.79°)
OKLaboklab(65.37% 0.0442 -0.1535)
OKLCHoklch(65.37% 0.16 286.1)
XYZxyz(33.0781, 26.3799, 82.6896)
Luminance0.2638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EEC #E0EC7E
analogous
#7EA9EC #8A7EEC #C17EEC
triadic
#8A7EEC #EC8A7E #7EEC8A
tetradic
#8A7EEC #EC7EA9 #E0EC7E #7EECC1
square
#8A7EEC #EC7EA9 #E0EC7E #7EECC1
split-complementary
#8A7EEC #ECC17E #A9EC7E
monochromatic
#321FD1 #5A49E4 #8A7EEC #BAB3F4 #E7E4FB

Accessibility & contrast

On white

3.35
#8A7EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A7EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EEC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EEC#FFFFFF#000000##000000
##8A7EEC1.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FF0
Deuteranopia (green-blind)
#5189E9
Tritanopia (blue-blind)
#6D94AA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7eec;
/* rgb */ color: rgb(138, 126, 236);
/* oklch */ color: oklch(65.4% 0.160 286.1);
Tailwind
colors: {
  custom: {
    50: '#b1a3f3',
    500: '#8a7eec',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eec;
$custom-light: #b1a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eec",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 246.545,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65369,
    "c": 0.15971,
    "h": 286.1
  },
  "luminance": 0.26381
}

Semantic roles & 50–950 ramp

primary
#8A7EEC
secondary
#EEF2D4
accent
#D60FC1
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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