#8A7CD1#8A7CD1

#8A7CD1 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.5% C 0.126 H 289.9°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD1
RGBrgb(138, 124, 209)
HSLhsl(250, 48%, 65%)
HSVhsv(250, 41%, 82%)
CMYKcmyk(34%, 40.7%, 0%, 18%)
CIE-LABlab(56.51, 24.83, -42.07)
CIE-LCHlch(56.51, 48.85, 300.55°)
OKLaboklab(63.48% 0.0427 -0.118)
OKLCHoklch(63.48% 0.126 289.9)
XYZxyz(29.1945, 24.4213, 63.4849)
Luminance0.2442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD1 #C3D17C
analogous
#7C99D1 #8A7CD1 #B47CD1
triadic
#8A7CD1 #D18A7C #7CD18A
tetradic
#8A7CD1 #D17C99 #C3D17C #7CD1B4
square
#8A7CD1 #D17C99 #C3D17C #7CD1B4
split-complementary
#8A7CD1 #D1B47C #99D17C
monochromatic
#47379C #624FC1 #8A7CD1 #B2A9E1 #DBD7F1

Accessibility & contrast

On white

3.57
#8A7CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#8A7CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD1
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD1#FFFFFF#000000##000000
##8A7CD11.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6189D4
Deuteranopia (green-blind)
#6286CF
Tritanopia (blue-blind)
#798C9C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a7cd1;
/* rgb */ color: rgb(138, 124, 209);
/* oklch */ color: oklch(63.5% 0.126 289.9);
Tailwind
colors: {
  custom: {
    50: '#afa2df',
    500: '#8a7cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd1;
$custom-light: #afa2df;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd1",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 209
  },
  "hsl": {
    "h": 249.882,
    "s": 48.023,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63484,
    "c": 0.12554,
    "h": 289.9
  },
  "luminance": 0.24422
}

Semantic roles & 50–950 ramp

primary
#8A7CD1
secondary
#DEE3C6
accent
#BB2AA3
background
#FAF9FD
surface
#F5F2FB
border
#CFCCD4
text
#110F15
muted
#807E83

Preview Lab

Preview with #8A7CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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