#8A7EDE#8A7EDE

#8A7EDE is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.6% C 0.141 H 287.5°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A7EDE
RGBrgb(138, 126, 222)
HSLhsl(248, 59%, 68%)
HSVhsv(248, 43%, 87%)
CMYKcmyk(37.8%, 43.2%, 0%, 12.9%)
CIE-LABlab(57.65, 27.16, -47.57)
CIE-LCHlch(57.65, 54.78, 299.72°)
OKLaboklab(64.57% 0.0423 -0.1341)
OKLCHoklch(64.57% 0.141 287.5)
XYZxyz(31.1233, 25.5979, 72.3941)
Luminance0.2560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EDE #D2DE7E
analogous
#7EA2DE #8A7EDE #BA7EDE
triadic
#8A7EDE #DE8A7E #7EDE8A
tetradic
#8A7EDE #DE7EA2 #D2DE7E #7EDEBA
square
#8A7EDE #DE7EA2 #D2DE7E #7EDEBA
split-complementary
#8A7EDE #DEBA7E #A2DE7E
monochromatic
#3F2EB4 #5E4DD2 #8A7EDE #B6AFEA #E2DFF7

Accessibility & contrast

On white

3.43
#8A7EDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#8A7EDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EDE
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EDE#FFFFFF#000000##000000
##8A7EDE1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8DE2
Deuteranopia (green-blind)
#5C88DC
Tritanopia (blue-blind)
#7391A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7ede;
/* rgb */ color: rgb(138, 126, 222);
/* oklch */ color: oklch(64.6% 0.141 287.5);
Tailwind
colors: {
  custom: {
    50: '#afa3e9',
    500: '#8a7ede',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ede;
$custom-light: #afa3e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ede",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 222
  },
  "hsl": {
    "h": 247.5,
    "s": 59.259,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64567,
    "c": 0.14059,
    "h": 287.5
  },
  "luminance": 0.25599
}

Semantic roles & 50–950 ramp

primary
#8A7EDE
secondary
#E7EACD
accent
#C71FB2
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EDE

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

Preview Lab → · Contrast checker → · Palette generator →

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