#8A7CF5#8A7CF5

#8A7CF5 is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.6% C 0.175 H 285.8°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A7CF5
RGBrgb(138, 124, 245)
HSLhsl(247, 86%, 72%)
HSVhsv(247, 49%, 96%)
CMYKcmyk(43.7%, 49.4%, 0%, 3.9%)
CIE-LABlab(58.42, 34.72, -59.15)
CIE-LCHlch(58.42, 68.58, 300.41°)
OKLaboklab(65.55% 0.0475 -0.168)
OKLCHoklch(65.55% 0.175 285.8)
XYZxyz(34.1656, 26.4098, 89.6659)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CF5 #E7F57C
analogous
#7CABF5 #8A7CF5 #C67CF5
triadic
#8A7CF5 #F58A7C #7CF58A
tetradic
#8A7CF5 #F57CAB #E7F57C #7CF5C6
square
#8A7CF5 #F57CAB #E7F57C #7CF5C6
split-complementary
#8A7CF5 #F5C67C #ABF57C
monochromatic
#2A11E5 #5743F1 #8A7CF5 #BDB5F9 #E6E3FD

Accessibility & contrast

On white

3.34
#8A7CF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A7CF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CF5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CF5#FFFFFF#000000##000000
##8A7CF51.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790F9
Deuteranopia (green-blind)
#4589F2
Tritanopia (blue-blind)
#6995AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7cf5;
/* rgb */ color: rgb(138, 124, 245);
/* oklch */ color: oklch(65.6% 0.175 285.8);
Tailwind
colors: {
  custom: {
    50: '#b2a2f9',
    500: '#8a7cf5',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cf5;
$custom-light: #b2a2f9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cf5",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 245
  },
  "hsl": {
    "h": 246.942,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65553,
    "c": 0.17457,
    "h": 285.8
  },
  "luminance": 0.26411
}

Semantic roles & 50–950 ramp

primary
#8A7CF5
secondary
#F1F5D6
accent
#E203C9
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7CF5

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

Preview Lab → · Contrast checker → · Palette generator →

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