#8A7CEC#8A7CEC

#8A7CEC is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.0% C 0.163 H 286.7°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A7CEC
RGBrgb(138, 124, 236)
HSLhsl(248, 75%, 71%)
HSVhsv(248, 47%, 93%)
CMYKcmyk(41.5%, 47.5%, 0%, 7.5%)
CIE-LABlab(57.92, 32.19, -54.97)
CIE-LCHlch(57.92, 63.70, 300.36°)
OKLaboklab(65.01% 0.0467 -0.1557)
OKLCHoklch(65.01% 0.163 286.7)
XYZxyz(32.8249, 25.8735, 82.6052)
Luminance0.2587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CEC #DEEC7C
analogous
#7CA6EC #8A7CEC #C27CEC
triadic
#8A7CEC #EC8A7C #7CEC8A
tetradic
#8A7CEC #EC7CA6 #DEEC7C #7CECC2
square
#8A7CEC #EC7CA6 #DEEC7C #7CECC2
split-complementary
#8A7CEC #ECC27C #A6EC7C
monochromatic
#341ED0 #5A47E4 #8A7CEC #BAB1F4 #E7E4FB

Accessibility & contrast

On white

3.40
#8A7CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#8A7CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CEC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CEC#FFFFFF#000000##000000
##8A7CEC1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EF0
Deuteranopia (green-blind)
#4E88E9
Tritanopia (blue-blind)
#6D93A9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7cec;
/* rgb */ color: rgb(138, 124, 236);
/* oklch */ color: oklch(65.0% 0.163 286.7);
Tailwind
colors: {
  custom: {
    50: '#b1a2f3',
    500: '#8a7cec',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cec;
$custom-light: #b1a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cec",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 236
  },
  "hsl": {
    "h": 247.5,
    "s": 74.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65008,
    "c": 0.16255,
    "h": 286.7
  },
  "luminance": 0.25875
}

Semantic roles & 50–950 ramp

primary
#8A7CEC
secondary
#EDF1D3
accent
#D70FBE
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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