#8A7EE8#8A7EE8

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

Color values

HEX#8A7EE8
RGBrgb(138, 126, 232)
HSLhsl(247, 70%, 70%)
HSVhsv(247, 46%, 91%)
CMYKcmyk(40.5%, 45.7%, 0%, 9%)
CIE-LABlab(58.18, 29.91, -52.32)
CIE-LCHlch(58.18, 60.27, 299.76°)
OKLaboklab(65.14% 0.0437 -0.148)
OKLCHoklch(65.14% 0.154 286.5)
XYZxyz(32.5035, 26.1500, 79.6632)
Luminance0.2615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EE8 #DCE87E
analogous
#7EA7E8 #8A7EE8 #BF7EE8
triadic
#8A7EE8 #E88A7E #7EE88A
tetradic
#8A7EE8 #E87EA7 #DCE87E #7EE8BF
square
#8A7EE8 #E87EA7 #DCE87E #7EE8BF
split-complementary
#8A7EE8 #E8BF7E #A7E87E
monochromatic
#3624C8 #5B4ADF #8A7EE8 #B9B2F1 #E7E5FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7EE8#FFFFFF#000000##000000
##8A7EE81.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)
#568FEC
Deuteranopia (green-blind)
#5489E6
Tritanopia (blue-blind)
#6F93A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7ee8;
/* rgb */ color: rgb(138, 126, 232);
/* oklch */ color: oklch(65.1% 0.154 286.5);
Tailwind
colors: {
  custom: {
    50: '#b0a3f0',
    500: '#8a7ee8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ee8;
$custom-light: #b0a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ee8",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 246.792,
    "s": 69.737,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65135,
    "c": 0.15429,
    "h": 286.5
  },
  "luminance": 0.26151
}

Semantic roles & 50–950 ramp

primary
#8A7EE8
secondary
#ECF0D2
accent
#D214BC
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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