#8A7EEA#8A7EEA

#8A7EEA is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.3% C 0.157 H 286.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A7EEA
RGBrgb(138, 126, 234)
HSLhsl(247, 72%, 71%)
HSVhsv(247, 46%, 92%)
CMYKcmyk(41%, 46.2%, 0%, 8.2%)
CIE-LABlab(58.29, 30.47, -53.26)
CIE-LCHlch(58.29, 61.36, 299.77°)
OKLaboklab(65.25% 0.044 -0.1507)
OKLCHoklch(65.25% 0.157 286.3)
XYZxyz(32.7892, 26.2643, 81.1678)
Luminance0.2626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EEA #DEEA7E
analogous
#7EA8EA #8A7EEA #C07EEA
triadic
#8A7EEA #EA8A7E #7EEA8A
tetradic
#8A7EEA #EA7EA8 #DEEA7E #7EEAC0
square
#8A7EEA #EA7EA8 #DEEA7E #7EEAC0
split-complementary
#8A7EEA #EAC07E #A8EA7E
monochromatic
#3421CC #5A49E1 #8A7EEA #BAB3F3 #E7E5FB

Accessibility & contrast

On white

3.36
#8A7EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#8A7EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EEA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EEA#FFFFFF#000000##000000
##8A7EEA1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#5289E8
Tritanopia (blue-blind)
#6E94A9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7eea;
/* rgb */ color: rgb(138, 126, 234);
/* oklch */ color: oklch(65.3% 0.157 286.3);
Tailwind
colors: {
  custom: {
    50: '#b0a3f1',
    500: '#8a7eea',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eea;
$custom-light: #b0a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eea",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 246.667,
    "s": 72,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65252,
    "c": 0.157,
    "h": 286.3
  },
  "luminance": 0.26265
}

Semantic roles & 50–950 ramp

primary
#8A7EEA
secondary
#EDF1D3
accent
#D411BE
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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