#8A7DEC#8A7DEC

#8A7DEC is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.161 H 286.4°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A7DEC
RGBrgb(138, 125, 236)
HSLhsl(247, 74%, 71%)
HSVhsv(247, 47%, 93%)
CMYKcmyk(41.5%, 47%, 0%, 7.5%)
CIE-LABlab(58.16, 31.61, -54.58)
CIE-LCHlch(58.16, 63.08, 300.07°)
OKLaboklab(65.19% 0.0455 -0.1546)
OKLCHoklch(65.19% 0.161 286.4)
XYZxyz(32.9509, 26.1254, 82.6472)
Luminance0.2613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DEC #DFEC7D
analogous
#7DA7EC #8A7DEC #C17DEC
triadic
#8A7DEC #EC8A7D #7DEC8A
tetradic
#8A7DEC #EC7DA7 #DFEC7D #7DECC1
square
#8A7DEC #EC7DA7 #DFEC7D #7DECC1
split-complementary
#8A7DEC #ECC17D #A7EC7D
monochromatic
#331ED0 #5A48E4 #8A7DEC #BAB2F4 #E7E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7DEC#FFFFFF#000000##000000
##8A7DEC1.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)
#518FF0
Deuteranopia (green-blind)
#4F89E9
Tritanopia (blue-blind)
#6D94A9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7dec;
/* rgb */ color: rgb(138, 125, 236);
/* oklch */ color: oklch(65.2% 0.161 286.4);
Tailwind
colors: {
  custom: {
    50: '#b1a2f3',
    500: '#8a7dec',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dec;
$custom-light: #b1a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dec",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 247.027,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.65188,
    "c": 0.16113,
    "h": 286.4
  },
  "luminance": 0.26127
}

Semantic roles & 50–950 ramp

primary
#8A7DEC
secondary
#EEF1D3
accent
#D70FBF
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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