#8A7DEB#8A7DEB

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

Color values

HEX#8A7DEB
RGBrgb(138, 125, 235)
HSLhsl(247, 73%, 71%)
HSVhsv(247, 47%, 92%)
CMYKcmyk(41.3%, 46.8%, 0%, 7.8%)
CIE-LABlab(58.10, 31.33, -54.12)
CIE-LCHlch(58.10, 62.53, 300.07°)
OKLaboklab(65.13% 0.0453 -0.1532)
OKLCHoklch(65.13% 0.16 286.5)
XYZxyz(32.8060, 26.0675, 81.8842)
Luminance0.2607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DEB #DEEB7D
analogous
#7DA7EB #8A7DEB #C17DEB
triadic
#8A7DEB #EB8A7D #7DEB8A
tetradic
#8A7DEB #EB7DA7 #DEEB7D #7DEBC1
square
#8A7DEB #EB7DA7 #DEEB7D #7DEBC1
split-complementary
#8A7DEB #EBC17D #A7EB7D
monochromatic
#3420CE #5A48E3 #8A7DEB #BAB2F3 #E7E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7DEB#FFFFFF#000000##000000
##8A7DEB1.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)
#528FEF
Deuteranopia (green-blind)
#5089E8
Tritanopia (blue-blind)
#6E93A9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7deb;
/* rgb */ color: rgb(138, 125, 235);
/* oklch */ color: oklch(65.1% 0.160 286.5);
Tailwind
colors: {
  custom: {
    50: '#b1a2f2',
    500: '#8a7deb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7deb;
$custom-light: #b1a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7deb",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 247.091,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65129,
    "c": 0.15978,
    "h": 286.5
  },
  "luminance": 0.26069
}

Semantic roles & 50–950 ramp

primary
#8A7DEB
secondary
#EDF1D3
accent
#D510BE
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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