#8A7ECF#8A7ECF

#8A7ECF is a light, moderate blue. Relative luminance 0.248; OKLCH L 63.8% C 0.120 H 289.3°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8A7ECF
RGBrgb(138, 126, 207)
HSLhsl(249, 46%, 65%)
HSVhsv(249, 39%, 81%)
CMYKcmyk(33.3%, 39.1%, 0%, 18.8%)
CIE-LABlab(56.91, 23.12, -40.31)
CIE-LCHlch(56.91, 46.47, 299.84°)
OKLaboklab(63.76% 0.0396 -0.1129)
OKLCHoklch(63.76% 0.12 289.3)
XYZxyz(29.2016, 24.8293, 62.2734)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ECF #C3CF7E
analogous
#7E9ACF #8A7ECF #B27ECF
triadic
#8A7ECF #CF8A7E #7ECF8A
tetradic
#8A7ECF #CF7E9A #C3CF7E #7ECFB2
square
#8A7ECF #CF7E9A #C3CF7E #7ECFB2
split-complementary
#8A7ECF #CFB27E #9ACF7E
monochromatic
#473999 #6251BE #8A7ECF #B2ABE0 #DBD7F0

Accessibility & contrast

On white

3.52
#8A7ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#8A7ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ECF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ECF#FFFFFF#000000##000000
##8A7ECF1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#658AD2
Deuteranopia (green-blind)
#6587CD
Tritanopia (blue-blind)
#798D9D
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7ecf;
/* rgb */ color: rgb(138, 126, 207);
/* oklch */ color: oklch(63.8% 0.120 289.3);
Tailwind
colors: {
  custom: {
    50: '#aea3de',
    500: '#8a7ecf',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ecf;
$custom-light: #aea3de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ecf",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 248.889,
    "s": 45.763,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63758,
    "c": 0.11968,
    "h": 289.3
  },
  "luminance": 0.2483
}

Semantic roles & 50–950 ramp

primary
#8A7ECF
secondary
#DEE2C7
accent
#B92DA4
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #8A7ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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