#8E7CEB#8E7CEB

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

Color values

HEX#8E7CEB
RGBrgb(142, 124, 235)
HSLhsl(250, 74%, 70%)
HSVhsv(250, 47%, 92%)
CMYKcmyk(39.6%, 47.2%, 0%, 7.8%)
CIE-LABlab(58.19, 32.88, -53.95)
CIE-LCHlch(58.19, 63.18, 301.36°)
OKLaboklab(65.28% 0.0513 -0.1526)
OKLCHoklch(65.28% 0.161 288.6)
XYZxyz(33.3542, 26.1632, 81.8738)
Luminance0.2616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7CEB #D9EB7C
analogous
#7CA1EB #8E7CEB #C67CEB
triadic
#8E7CEB #EB8E7C #7CEB8E
tetradic
#8E7CEB #EB7CA1 #D9EB7C #7CEBC6
square
#8E7CEB #EB7CA1 #D9EB7C #7CEBC6
split-complementary
#8E7CEB #EBC67C #A1EB7C
monochromatic
#3C1FCD #6047E3 #8E7CEB #BCB1F3 #E8E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7CEB#FFFFFF#000000##000000
##8E7CEB1.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)
#518EEF
Deuteranopia (green-blind)
#5289E8
Tritanopia (blue-blind)
#7492A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8e7ceb;
/* rgb */ color: rgb(142, 124, 235);
/* oklch */ color: oklch(65.3% 0.161 288.6);
Tailwind
colors: {
  custom: {
    50: '#b3a2f2',
    500: '#8e7ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8e7ceb;
$custom-light: #b3a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7ceb",
  "rgb": {
    "r": 142,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 249.73,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65278,
    "c": 0.16102,
    "h": 288.6
  },
  "luminance": 0.26164
}

Semantic roles & 50–950 ramp

primary
#8E7CEB
secondary
#ECF1D2
accent
#D610B6
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8E7CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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