#8A7CD6#8A7CD6

#8A7CD6 is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.133 H 289.2°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD6
RGBrgb(138, 124, 214)
HSLhsl(249, 52%, 66%)
HSVhsv(249, 42%, 84%)
CMYKcmyk(35.5%, 42.1%, 0%, 16.1%)
CIE-LABlab(56.76, 26.16, -44.50)
CIE-LCHlch(56.76, 51.62, 300.45°)
OKLaboklab(63.75% 0.0436 -0.1251)
OKLCHoklch(63.75% 0.133 289.2)
XYZxyz(29.8232, 24.6728, 66.7963)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD6 #C8D67C
analogous
#7C9BD6 #8A7CD6 #B77CD6
triadic
#8A7CD6 #D68A7C #7CD68A
tetradic
#8A7CD6 #D67C9B #C8D67C #7CD6B7
square
#8A7CD6 #D67C9B #C8D67C #7CD6B7
split-complementary
#8A7CD6 #D6B77C #9BD67C
monochromatic
#4533A4 #604DC7 #8A7CD6 #B4ABE5 #DDD9F3

Accessibility & contrast

On white

3.54
#8A7CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#8A7CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD6#FFFFFF#000000##000000
##8A7CD61.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8AD9
Deuteranopia (green-blind)
#5F86D4
Tritanopia (blue-blind)
#778D9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7cd6;
/* rgb */ color: rgb(138, 124, 214);
/* oklch */ color: oklch(63.8% 0.133 289.2);
Tailwind
colors: {
  custom: {
    50: '#afa2e3',
    500: '#8a7cd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd6;
$custom-light: #afa2e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd6",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 249.333,
    "s": 52.326,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63753,
    "c": 0.1325,
    "h": 289.2
  },
  "luminance": 0.24674
}

Semantic roles & 50–950 ramp

primary
#8A7CD6
secondary
#E1E6C8
accent
#C026A8
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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