#8A7CEF#8A7CEF

#8A7CEF is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.167 H 286.4°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A7CEF
RGBrgb(138, 124, 239)
HSLhsl(247, 78%, 71%)
HSVhsv(247, 48%, 94%)
CMYKcmyk(42.3%, 48.1%, 0%, 6.3%)
CIE-LABlab(58.08, 33.03, -56.37)
CIE-LCHlch(58.08, 65.33, 300.37°)
OKLaboklab(65.19% 0.047 -0.1598)
OKLCHoklch(65.19% 0.167 286.4)
XYZxyz(33.2644, 26.0493, 84.9199)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CEF #E1EF7C
analogous
#7CA7EF #8A7CEF #C37CEF
triadic
#8A7CEF #EF8A7C #7CEF8A
tetradic
#8A7CEF #EF7CA7 #E1EF7C #7CEFC3
square
#8A7CEF #EF7CA7 #E1EF7C #7CEFC3
split-complementary
#8A7CEF #EFC37C #A7EF7C
monochromatic
#311AD6 #5945E8 #8A7CEF #BBB3F6 #E7E4FC

Accessibility & contrast

On white

3.38
#8A7CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A7CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CEF
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CEF#FFFFFF#000000##000000
##8A7CEF1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#4B88EC
Tritanopia (blue-blind)
#6C94AA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7cef;
/* rgb */ color: rgb(138, 124, 239);
/* oklch */ color: oklch(65.2% 0.167 286.4);
Tailwind
colors: {
  custom: {
    50: '#b1a2f5',
    500: '#8a7cef',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cef;
$custom-light: #b1a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cef",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 247.304,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65188,
    "c": 0.16657,
    "h": 286.4
  },
  "luminance": 0.26051
}

Semantic roles & 50–950 ramp

primary
#8A7CEF
secondary
#EFF3D4
accent
#DA0BC1
background
#FBFAFF
surface
#F6F3FE
border
#D0CDD6
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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