#8A7FD6#8A7FD6

#8A7FD6 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.3% C 0.128 H 288.0°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7FD6
RGBrgb(138, 127, 214)
HSLhsl(248, 51%, 67%)
HSVhsv(248, 41%, 84%)
CMYKcmyk(35.5%, 40.7%, 0%, 16.1%)
CIE-LABlab(57.50, 24.40, -43.33)
CIE-LCHlch(57.50, 49.73, 299.39°)
OKLaboklab(64.32% 0.0396 -0.1217)
OKLCHoklch(64.32% 0.128 288)
XYZxyz(30.2049, 25.4362, 66.9235)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FD6 #CBD67F
analogous
#7FA0D6 #8A7FD6 #B67FD6
triadic
#8A7FD6 #D68A7F #7FD68A
tetradic
#8A7FD6 #D67FA0 #CBD67F #7FD6B6
square
#8A7FD6 #D67FA0 #CBD67F #7FD6B6
split-complementary
#8A7FD6 #D6B67F #A0D67F
monochromatic
#4335A6 #6051C7 #8A7FD6 #B4ADE5 #DFDCF4

Accessibility & contrast

On white

3.45
#8A7FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#8A7FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FD6
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FD6#FFFFFF#000000##000000
##8A7FD61.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#638CD9
Deuteranopia (green-blind)
#6288D4
Tritanopia (blue-blind)
#7690A0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7fd6;
/* rgb */ color: rgb(138, 127, 214);
/* oklch */ color: oklch(64.3% 0.128 288.0);
Tailwind
colors: {
  custom: {
    50: '#afa4e3',
    500: '#8a7fd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fd6;
$custom-light: #afa4e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fd6",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 214
  },
  "hsl": {
    "h": 247.586,
    "s": 51.479,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64318,
    "c": 0.12798,
    "h": 288
  },
  "luminance": 0.25437
}

Semantic roles & 50–950 ramp

primary
#8A7FD6
secondary
#E3E6CA
accent
#BF27AC
background
#FBFAFD
surface
#F6F4FB
border
#D0CED4
text
#110F15
muted
#807F83

Preview Lab

Preview with #8A7FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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