#8A7ED9#8A7ED9

#8A7ED9 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.3% C 0.134 H 288.1°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A7ED9
RGBrgb(138, 126, 217)
HSLhsl(248, 54%, 67%)
HSVhsv(248, 42%, 85%)
CMYKcmyk(36.4%, 41.9%, 0%, 14.9%)
CIE-LABlab(57.40, 25.80, -45.17)
CIE-LCHlch(57.40, 52.02, 299.73°)
OKLaboklab(64.29% 0.0415 -0.1271)
OKLCHoklch(64.29% 0.134 288.1)
XYZxyz(30.4631, 25.3339, 68.9171)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ED9 #CDD97E
analogous
#7EA0D9 #8A7ED9 #B87ED9
triadic
#8A7ED9 #D98A7E #7ED98A
tetradic
#8A7ED9 #D97EA0 #CDD97E #7ED9B8
square
#8A7ED9 #D97EA0 #CDD97E #7ED9B8
split-complementary
#8A7ED9 #D9B87E #A0D97E
monochromatic
#4232AA #5F4FCB #8A7ED9 #B5ADE7 #E0DDF5

Accessibility & contrast

On white

3.46
#8A7ED9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#8A7ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ED9
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ED9#FFFFFF#000000##000000
##8A7ED91.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#608CDC
Deuteranopia (green-blind)
#5F88D7
Tritanopia (blue-blind)
#758FA1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7ed9;
/* rgb */ color: rgb(138, 126, 217);
/* oklch */ color: oklch(64.3% 0.134 288.1);
Tailwind
colors: {
  custom: {
    50: '#afa3e5',
    500: '#8a7ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ed9;
$custom-light: #afa3e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ed9",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 217
  },
  "hsl": {
    "h": 247.912,
    "s": 54.491,
    "l": 67.255
  },
  "oklch": {
    "l": 0.64291,
    "c": 0.13366,
    "h": 288.1
  },
  "luminance": 0.25335
}

Semantic roles & 50–950 ramp

primary
#8A7ED9
secondary
#E4E8CB
accent
#C224AD
background
#FBFAFE
surface
#F6F3FC
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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