#8A7DEA#8A7DEA

#8A7DEA is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.1% C 0.158 H 286.6°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8A7DEA
RGBrgb(138, 125, 234)
HSLhsl(247, 72%, 70%)
HSVhsv(247, 47%, 92%)
CMYKcmyk(41%, 46.6%, 0%, 8.2%)
CIE-LABlab(58.05, 31.05, -53.65)
CIE-LCHlch(58.05, 61.99, 300.06°)
OKLaboklab(65.07% 0.0452 -0.1518)
OKLCHoklch(65.07% 0.158 286.6)
XYZxyz(32.6619, 26.0098, 81.1254)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DEA #DDEA7D
analogous
#7DA6EA #8A7DEA #C07DEA
triadic
#8A7DEA #EA8A7D #7DEA8A
tetradic
#8A7DEA #EA7DA6 #DDEA7D #7DEAC0
square
#8A7DEA #EA7DA6 #DDEA7D #7DEAC0
split-complementary
#8A7DEA #EAC07D #A6EA7D
monochromatic
#3521CC #5B48E1 #8A7DEA #B9B2F3 #E7E5FB

Accessibility & contrast

On white

3.39
#8A7DEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#8A7DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DEA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DEA#FFFFFF#000000##000000
##8A7DEA1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#538EEE
Deuteranopia (green-blind)
#5188E7
Tritanopia (blue-blind)
#6E93A8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7dea;
/* rgb */ color: rgb(138, 125, 234);
/* oklch */ color: oklch(65.1% 0.158 286.6);
Tailwind
colors: {
  custom: {
    50: '#b0a2f1',
    500: '#8a7dea',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dea;
$custom-light: #b0a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dea",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 234
  },
  "hsl": {
    "h": 247.156,
    "s": 72.185,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6507,
    "c": 0.15843,
    "h": 286.6
  },
  "luminance": 0.26011
}

Semantic roles & 50–950 ramp

primary
#8A7DEA
secondary
#EDF0D2
accent
#D411BD
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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