#8A7EC7#8A7EC7

#8A7EC7 is a light, moderate blue. Relative luminance 0.244; OKLCH L 63.3% C 0.108 H 290.5°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7EC7
RGBrgb(138, 126, 199)
HSLhsl(250, 39%, 64%)
HSVhsv(250, 37%, 78%)
CMYKcmyk(30.7%, 36.7%, 0%, 22%)
CIE-LABlab(56.53, 21.03, -36.37)
CIE-LCHlch(56.53, 42.01, 300.04°)
OKLaboklab(63.35% 0.038 -0.1015)
OKLCHoklch(63.35% 0.108 290.5)
XYZxyz(28.2483, 24.4479, 57.2524)
Luminance0.2445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EC7 #BBC77E
analogous
#7E96C7 #8A7EC7 #AE7EC7
triadic
#8A7EC7 #C78A7E #7EC78A
tetradic
#8A7EC7 #C77E96 #BBC77E #7EC7AE
square
#8A7EC7 #C77E96 #BBC77E #7EC7AE
split-complementary
#8A7EC7 #C7AE7E #96C77E
monochromatic
#4A3D8D #6353B4 #8A7EC7 #B1A9DA #D7D3EC

Accessibility & contrast

On white

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

On black

5.89
#8A7EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EC7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EC7#FFFFFF#000000##000000
##8A7EC71.003.575.895.89
#FFFFFF3.571.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6989CA
Deuteranopia (green-blind)
#6A86C5
Tritanopia (blue-blind)
#7C8B99
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7ec7;
/* rgb */ color: rgb(138, 126, 199);
/* oklch */ color: oklch(63.3% 0.108 290.5);
Tailwind
colors: {
  custom: {
    50: '#aea3d8',
    500: '#8a7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ec7;
$custom-light: #aea3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ec7",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 249.863,
    "s": 39.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63349,
    "c": 0.10836,
    "h": 290.5
  },
  "luminance": 0.24449
}

Semantic roles & 50–950 ramp

primary
#8A7EC7
secondary
#D9DDC4
accent
#B2339E
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F14
muted
#7F7F83

Preview Lab

Preview with #8A7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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