#8A7AE3#8A7AE3

#8A7AE3 is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.1% C 0.153 H 288.3°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A7AE3
RGBrgb(138, 122, 227)
HSLhsl(249, 65%, 68%)
HSVhsv(249, 46%, 89%)
CMYKcmyk(39.2%, 46.3%, 0%, 11%)
CIE-LABlab(56.95, 30.87, -51.49)
CIE-LCHlch(56.95, 60.04, 300.94°)
OKLaboklab(64.12% 0.0481 -0.1455)
OKLCHoklch(64.12% 0.153 288.3)
XYZxyz(31.3021, 24.8674, 75.8088)
Luminance0.2487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AE3 #D3E37A
analogous
#7A9EE3 #8A7AE3 #BE7AE3
triadic
#8A7AE3 #E38A7A #7AE38A
tetradic
#8A7AE3 #E37A9E #D3E37A #7AE3BE
square
#8A7AE3 #E37A9E #D3E37A #7AE3BE
split-complementary
#8A7AE3 #E3BE7A #9EE37A
monochromatic
#3E27BB #5E47D8 #8A7AE3 #B6ADEE #E3DFF8

Accessibility & contrast

On white

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

On black

5.97
#8A7AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AE3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AE3#FFFFFF#000000##000000
##8A7AE31.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE7
Deuteranopia (green-blind)
#5386E1
Tritanopia (blue-blind)
#728FA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7ae3;
/* rgb */ color: rgb(138, 122, 227);
/* oklch */ color: oklch(64.1% 0.153 288.3);
Tailwind
colors: {
  custom: {
    50: '#b0a0ec',
    500: '#8a7ae3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ae3;
$custom-light: #b0a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ae3",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 227
  },
  "hsl": {
    "h": 249.143,
    "s": 65.217,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64118,
    "c": 0.15329,
    "h": 288.3
  },
  "luminance": 0.24868
}

Semantic roles & 50–950 ramp

primary
#8A7AE3
secondary
#E7ECCD
accent
#CD18B2
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E16
muted
#807E84

Preview Lab

Preview with #8A7AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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