#8A7CE7#8A7CE7

#8A7CE7 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.7% C 0.156 H 287.2°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A7CE7
RGBrgb(138, 124, 231)
HSLhsl(248, 69%, 70%)
HSVhsv(248, 46%, 91%)
CMYKcmyk(40.3%, 46.3%, 0%, 9.4%)
CIE-LABlab(57.64, 30.80, -52.62)
CIE-LCHlch(57.64, 60.97, 300.34°)
OKLaboklab(64.71% 0.0461 -0.1488)
OKLCHoklch(64.71% 0.156 287.2)
XYZxyz(32.1086, 25.5870, 78.8328)
Luminance0.2559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CE7 #D9E77C
analogous
#7CA4E7 #8A7CE7 #BF7CE7
triadic
#8A7CE7 #E78A7C #7CE78A
tetradic
#8A7CE7 #E77CA4 #D9E77C #7CE7BF
square
#8A7CE7 #E77CA4 #D9E77C #7CE7BF
split-complementary
#8A7CE7 #E7BF7C #A4E77C
monochromatic
#3924C5 #5C48DE #8A7CE7 #B8B0F0 #E6E3FA

Accessibility & contrast

On white

3.43
#8A7CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#8A7CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CE7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CE7#FFFFFF#000000##000000
##8A7CE71.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#538DEB
Deuteranopia (green-blind)
#5288E5
Tritanopia (blue-blind)
#7092A6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7ce7;
/* rgb */ color: rgb(138, 124, 231);
/* oklch */ color: oklch(64.7% 0.156 287.2);
Tailwind
colors: {
  custom: {
    50: '#b0a2ef',
    500: '#8a7ce7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ce7;
$custom-light: #b0a2ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ce7",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 231
  },
  "hsl": {
    "h": 247.85,
    "s": 69.032,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64713,
    "c": 0.1558,
    "h": 287.2
  },
  "luminance": 0.25588
}

Semantic roles & 50–950 ramp

primary
#8A7CE7
secondary
#EBEFD0
accent
#D115B8
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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