#8A7EDA#8A7EDA

#8A7EDA is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.3% C 0.135 H 288.0°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A7EDA
RGBrgb(138, 126, 218)
HSLhsl(248, 55%, 67%)
HSVhsv(248, 42%, 85%)
CMYKcmyk(36.7%, 42.2%, 0%, 14.5%)
CIE-LABlab(57.45, 26.07, -45.65)
CIE-LCHlch(57.45, 52.57, 299.73°)
OKLaboklab(64.35% 0.0417 -0.1285)
OKLCHoklch(64.35% 0.135 288)
XYZxyz(30.5935, 25.3860, 69.6042)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EDA #CEDA7E
analogous
#7EA0DA #8A7EDA #B87EDA
triadic
#8A7EDA #DA8A7E #7EDA8A
tetradic
#8A7EDA #DA7EA0 #CEDA7E #7EDAB8
square
#8A7EDA #DA7EA0 #CEDA7E #7EDAB8
split-complementary
#8A7EDA #DAB87E #A0DA7E
monochromatic
#4131AC #5F4ECC #8A7EDA #B5AEE8 #E0DDF5

Accessibility & contrast

On white

3.46
#8A7EDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#8A7EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EDA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EDA#FFFFFF#000000##000000
##8A7EDA1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8CDD
Deuteranopia (green-blind)
#5E88D8
Tritanopia (blue-blind)
#7590A1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7eda;
/* rgb */ color: rgb(138, 126, 218);
/* oklch */ color: oklch(64.3% 0.135 288.0);
Tailwind
colors: {
  custom: {
    50: '#afa3e6',
    500: '#8a7eda',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eda;
$custom-light: #afa3e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eda",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 218
  },
  "hsl": {
    "h": 247.826,
    "s": 55.422,
    "l": 67.451
  },
  "oklch": {
    "l": 0.64346,
    "c": 0.13505,
    "h": 288
  },
  "luminance": 0.25387
}

Semantic roles & 50–950 ramp

primary
#8A7EDA
secondary
#E5E8CC
accent
#C323AE
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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