#8A7EE4#8A7EE4

#8A7EE4 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.9% C 0.149 H 286.9°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A7EE4
RGBrgb(138, 126, 228)
HSLhsl(247, 65%, 69%)
HSVhsv(247, 45%, 89%)
CMYKcmyk(39.5%, 44.7%, 0%, 10.6%)
CIE-LABlab(57.97, 28.81, -50.43)
CIE-LCHlch(57.97, 58.08, 299.73°)
OKLaboklab(64.91% 0.0432 -0.1424)
OKLCHoklch(64.91% 0.149 286.9)
XYZxyz(31.9418, 25.9253, 76.7049)
Luminance0.2593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EE4 #D8E47E
analogous
#7EA5E4 #8A7EE4 #BD7EE4
triadic
#8A7EE4 #E48A7E #7EE48A
tetradic
#8A7EE4 #E47EA5 #D8E47E #7EE4BD
square
#8A7EE4 #E47EA5 #D8E47E #7EE4BD
split-complementary
#8A7EE4 #E4BD7E #A5E47E
monochromatic
#3A28C0 #5C4BD9 #8A7EE4 #B8B1EF #E6E3F9

Accessibility & contrast

On white

3.40
#8A7EE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#8A7EE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EE4
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EE4#FFFFFF#000000##000000
##8A7EE41.003.406.196.19
#FFFFFF3.401.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#598EE8
Deuteranopia (green-blind)
#5789E2
Tritanopia (blue-blind)
#7192A6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7ee4;
/* rgb */ color: rgb(138, 126, 228);
/* oklch */ color: oklch(64.9% 0.149 286.9);
Tailwind
colors: {
  custom: {
    50: '#b0a3ed',
    500: '#8a7ee4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ee4;
$custom-light: #b0a3ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ee4",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 228
  },
  "hsl": {
    "h": 247.059,
    "s": 65.385,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64905,
    "c": 0.14883,
    "h": 286.9
  },
  "luminance": 0.25926
}

Semantic roles & 50–950 ramp

primary
#8A7EE4
secondary
#EAEED0
accent
#CD18B8
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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