#8A7CEE#8A7CEE

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

Color values

HEX#8A7CEE
RGBrgb(138, 124, 238)
HSLhsl(247, 77%, 71%)
HSVhsv(247, 48%, 93%)
CMYKcmyk(42%, 47.9%, 0%, 6.7%)
CIE-LABlab(58.03, 32.75, -55.90)
CIE-LCHlch(58.03, 64.79, 300.37°)
OKLaboklab(65.13% 0.0469 -0.1584)
OKLCHoklch(65.13% 0.165 286.5)
XYZxyz(33.1171, 25.9904, 84.1441)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CEE #E0EE7C
analogous
#7CA7EE #8A7CEE #C37CEE
triadic
#8A7CEE #EE8A7C #7CEE8A
tetradic
#8A7CEE #EE7CA7 #E0EE7C #7CEEC3
square
#8A7CEE #EE7CA7 #E0EE7C #7CEEC3
split-complementary
#8A7CEE #EEC37C #A7EE7C
monochromatic
#321CD4 #5A46E7 #8A7CEE #BAB2F5 #E7E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7CEE#FFFFFF#000000##000000
##8A7CEE1.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)
#4E8EF2
Deuteranopia (green-blind)
#4C88EB
Tritanopia (blue-blind)
#6C93AA
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7cee;
/* rgb */ color: rgb(138, 124, 238);
/* oklch */ color: oklch(65.1% 0.165 286.5);
Tailwind
colors: {
  custom: {
    50: '#b1a2f4',
    500: '#8a7cee',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cee;
$custom-light: #b1a2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cee",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 238
  },
  "hsl": {
    "h": 247.368,
    "s": 77.027,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65128,
    "c": 0.16524,
    "h": 286.5
  },
  "luminance": 0.25992
}

Semantic roles & 50–950 ramp

primary
#8A7CEE
secondary
#EEF2D4
accent
#D90CC0
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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