#8A7EC9#8A7EC9

#8A7EC9 is a light, moderate blue. Relative luminance 0.245; OKLCH L 63.4% C 0.111 H 290.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A7EC9
RGBrgb(138, 126, 201)
HSLhsl(250, 41%, 64%)
HSVhsv(250, 37%, 79%)
CMYKcmyk(31.3%, 37.3%, 0%, 21.2%)
CIE-LABlab(56.63, 21.55, -37.36)
CIE-LCHlch(56.63, 43.13, 299.98°)
OKLaboklab(63.45% 0.0384 -0.1044)
OKLCHoklch(63.45% 0.111 290.2)
XYZxyz(28.4820, 24.5414, 58.4834)
Luminance0.2454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EC9 #BDC97E
analogous
#7E98C9 #8A7EC9 #B07EC9
triadic
#8A7EC9 #C98A7E #7EC98A
tetradic
#8A7EC9 #C97E98 #BDC97E #7EC9B0
square
#8A7EC9 #C97E98 #BDC97E #7EC9B0
split-complementary
#8A7EC9 #C9B07E #98C97E
monochromatic
#4A3C90 #6353B7 #8A7EC9 #B1A9DB #D8D4ED

Accessibility & contrast

On white

3.55
#8A7EC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#8A7EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EC9
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EC9#FFFFFF#000000##000000
##8A7EC91.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6889CC
Deuteranopia (green-blind)
#6886C7
Tritanopia (blue-blind)
#7B8C9A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7ec9;
/* rgb */ color: rgb(138, 126, 201);
/* oklch */ color: oklch(63.4% 0.111 290.2);
Tailwind
colors: {
  custom: {
    50: '#aea3d9',
    500: '#8a7ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ec9;
$custom-light: #aea3d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ec9",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 201
  },
  "hsl": {
    "h": 249.6,
    "s": 40.984,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63449,
    "c": 0.1112,
    "h": 290.2
  },
  "luminance": 0.24542
}

Semantic roles & 50–950 ramp

primary
#8A7EC9
secondary
#DADEC4
accent
#B4319F
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #8A7EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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