#8A7AE2#8A7AE2

#8A7AE2 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.1% C 0.152 H 288.4°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A7AE2
RGBrgb(138, 122, 226)
HSLhsl(249, 64%, 68%)
HSVhsv(249, 46%, 89%)
CMYKcmyk(38.9%, 46%, 0%, 11.4%)
CIE-LABlab(56.89, 30.59, -51.02)
CIE-LCHlch(56.89, 59.49, 300.95°)
OKLaboklab(64.06% 0.048 -0.1441)
OKLCHoklch(64.06% 0.152 288.4)
XYZxyz(31.1644, 24.8123, 75.0840)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AE2 #D2E27A
analogous
#7A9EE2 #8A7AE2 #BE7AE2
triadic
#8A7AE2 #E28A7A #7AE28A
tetradic
#8A7AE2 #E27A9E #D2E27A #7AE2BE
square
#8A7AE2 #E27A9E #D2E27A #7AE2BE
split-complementary
#8A7AE2 #E2BE7A #9EE27A
monochromatic
#3F28B9 #5E48D7 #8A7AE2 #B6ACED #E2DEF8

Accessibility & contrast

On white

3.52
#8A7AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A7AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AE2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AE2#FFFFFF#000000##000000
##8A7AE21.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#548BE6
Deuteranopia (green-blind)
#5386E0
Tritanopia (blue-blind)
#728FA3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7ae2;
/* rgb */ color: rgb(138, 122, 226);
/* oklch */ color: oklch(64.1% 0.152 288.4);
Tailwind
colors: {
  custom: {
    50: '#b0a0eb',
    500: '#8a7ae2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ae2;
$custom-light: #b0a0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ae2",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 226
  },
  "hsl": {
    "h": 249.231,
    "s": 64.198,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6406,
    "c": 0.15193,
    "h": 288.4
  },
  "luminance": 0.24813
}

Semantic roles & 50–950 ramp

primary
#8A7AE2
secondary
#E7ECCC
accent
#CC19B1
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A7AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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