#8A7CD8#8A7CD8

#8A7CD8 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.9% C 0.135 H 289.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A7CD8
RGBrgb(138, 124, 216)
HSLhsl(249, 54%, 67%)
HSVhsv(249, 43%, 85%)
CMYKcmyk(36.1%, 42.6%, 0%, 15.3%)
CIE-LABlab(56.86, 26.70, -45.47)
CIE-LCHlch(56.86, 52.73, 300.42°)
OKLaboklab(63.86% 0.044 -0.1279)
OKLCHoklch(63.86% 0.135 289)
XYZxyz(30.0802, 24.7756, 68.1498)
Luminance0.2478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CD8 #CAD87C
analogous
#7C9CD8 #8A7CD8 #B87CD8
triadic
#8A7CD8 #D88A7C #7CD88A
tetradic
#8A7CD8 #D87C9C #CAD87C #7CD8B8
square
#8A7CD8 #D87C9C #CAD87C #7CD8B8
split-complementary
#8A7CD8 #D8B87C #9CD87C
monochromatic
#4432A8 #604DCA #8A7CD8 #B4ABE6 #DEDAF4

Accessibility & contrast

On white

3.53
#8A7CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8A7CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CD8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CD8#FFFFFF#000000##000000
##8A7CD81.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8ADB
Deuteranopia (green-blind)
#5D86D6
Tritanopia (blue-blind)
#768EA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7cd8;
/* rgb */ color: rgb(138, 124, 216);
/* oklch */ color: oklch(63.9% 0.135 289.0);
Tailwind
colors: {
  custom: {
    50: '#afa2e4',
    500: '#8a7cd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cd8;
$custom-light: #afa2e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cd8",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 249.13,
    "s": 54.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.63863,
    "c": 0.13526,
    "h": 289
  },
  "luminance": 0.24776
}

Semantic roles & 50–950 ramp

primary
#8A7CD8
secondary
#E2E7C9
accent
#C224AA
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110F15
muted
#807E84

Preview Lab

Preview with #8A7CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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