#8A7DEE#8A7DEE

#8A7DEE is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.3% C 0.164 H 286.2°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A7DEE
RGBrgb(138, 125, 238)
HSLhsl(247, 77%, 71%)
HSVhsv(247, 47%, 93%)
CMYKcmyk(42%, 47.5%, 0%, 6.7%)
CIE-LABlab(58.27, 32.17, -55.52)
CIE-LCHlch(58.27, 64.17, 300.09°)
OKLaboklab(65.31% 0.0457 -0.1573)
OKLCHoklch(65.31% 0.164 286.2)
XYZxyz(33.2431, 26.2423, 84.1860)
Luminance0.2624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DEE #E1EE7D
analogous
#7DA8EE #8A7DEE #C27DEE
triadic
#8A7DEE #EE8A7D #7DEE8A
tetradic
#8A7DEE #EE7DA8 #E1EE7D #7DEEC2
square
#8A7DEE #EE7DA8 #E1EE7D #7DEEC2
split-complementary
#8A7DEE #EEC27D #A8EE7D
monochromatic
#311CD5 #5947E7 #8A7DEE #BBB3F5 #E7E4FB

Accessibility & contrast

On white

3.36
#8A7DEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#8A7DEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DEE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DEE#FFFFFF#000000##000000
##8A7DEE1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#508FF2
Deuteranopia (green-blind)
#4D89EB
Tritanopia (blue-blind)
#6C94AA
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7dee;
/* rgb */ color: rgb(138, 125, 238);
/* oklch */ color: oklch(65.3% 0.164 286.2);
Tailwind
colors: {
  custom: {
    50: '#b1a2f4',
    500: '#8a7dee',
    950: '#000000',
  },
}
SCSS
$custom: #8a7dee;
$custom-light: #b1a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7dee",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 238
  },
  "hsl": {
    "h": 246.903,
    "s": 76.871,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65307,
    "c": 0.16382,
    "h": 286.2
  },
  "luminance": 0.26244
}

Semantic roles & 50–950 ramp

primary
#8A7DEE
secondary
#EFF2D5
accent
#D90CC2
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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