#8A7CD4#8A7CD4

#8A7CD4 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.6% C 0.130 H 289.5°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD4
RGBrgb(138, 124, 212)
HSLhsl(250, 51%, 66%)
HSVhsv(250, 42%, 83%)
CMYKcmyk(34.9%, 41.5%, 0%, 16.9%)
CIE-LABlab(56.66, 25.63, -43.53)
CIE-LCHlch(56.66, 50.51, 300.49°)
OKLaboklab(63.65% 0.0433 -0.1223)
OKLCHoklch(63.65% 0.13 289.5)
XYZxyz(29.5694, 24.5713, 65.4594)
Luminance0.2457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD4 #C6D47C
analogous
#7C9AD4 #8A7CD4 #B67CD4
triadic
#8A7CD4 #D48A7C #7CD48A
tetradic
#8A7CD4 #D47C9A #C6D47C #7CD4B6
square
#8A7CD4 #D47C9A #C6D47C #7CD4B6
split-complementary
#8A7CD4 #D4B67C #9AD47C
monochromatic
#4635A1 #614EC5 #8A7CD4 #B3AAE3 #DCD8F2

Accessibility & contrast

On white

3.55
#8A7CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A7CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD4
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD4#FFFFFF#000000##000000
##8A7CD41.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#608AD7
Deuteranopia (green-blind)
#6086D2
Tritanopia (blue-blind)
#778D9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7cd4;
/* rgb */ color: rgb(138, 124, 212);
/* oklch */ color: oklch(63.6% 0.130 289.5);
Tailwind
colors: {
  custom: {
    50: '#afa2e1',
    500: '#8a7cd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd4;
$custom-light: #afa2e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd4",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 249.545,
    "s": 50.575,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63645,
    "c": 0.12971,
    "h": 289.5
  },
  "luminance": 0.24572
}

Semantic roles & 50–950 ramp

primary
#8A7CD4
secondary
#E0E4C7
accent
#BE28A6
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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