#8A7EE2#8A7EE2

#8A7EE2 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.146 H 287.1°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A7EE2
RGBrgb(138, 126, 226)
HSLhsl(247, 63%, 69%)
HSVhsv(247, 44%, 89%)
CMYKcmyk(38.9%, 44.2%, 0%, 11.4%)
CIE-LABlab(57.86, 28.25, -49.48)
CIE-LCHlch(57.86, 56.98, 299.73°)
OKLaboklab(64.79% 0.0429 -0.1396)
OKLCHoklch(64.79% 0.146 287.1)
XYZxyz(31.6657, 25.8149, 75.2511)
Luminance0.2582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EE2 #D6E27E
analogous
#7EA4E2 #8A7EE2 #BC7EE2
triadic
#8A7EE2 #E28A7E #7EE28A
tetradic
#8A7EE2 #E27EA4 #D6E27E #7EE2BC
square
#8A7EE2 #E27EA4 #D6E27E #7EE2BC
split-complementary
#8A7EE2 #E2BC7E #A4E27E
monochromatic
#3C2ABB #5D4CD7 #8A7EE2 #B7B0ED #E5E2F8

Accessibility & contrast

On white

3.41
#8A7EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A7EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EE2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EE2#FFFFFF#000000##000000
##8A7EE21.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8EE6
Deuteranopia (green-blind)
#5988E0
Tritanopia (blue-blind)
#7292A5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7ee2;
/* rgb */ color: rgb(138, 126, 226);
/* oklch */ color: oklch(64.8% 0.146 287.1);
Tailwind
colors: {
  custom: {
    50: '#b0a3eb',
    500: '#8a7ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ee2;
$custom-light: #b0a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ee2",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 247.2,
    "s": 63.291,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64792,
    "c": 0.14608,
    "h": 287.1
  },
  "luminance": 0.25816
}

Semantic roles & 50–950 ramp

primary
#8A7EE2
secondary
#E9EDCF
accent
#CB1AB6
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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