#8A7ECA#8A7ECA

#8A7ECA is a light, moderate blue. Relative luminance 0.246; OKLCH L 63.5% C 0.113 H 290.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A7ECA
RGBrgb(138, 126, 202)
HSLhsl(249, 42%, 64%)
HSVhsv(249, 38%, 79%)
CMYKcmyk(31.7%, 37.6%, 0%, 20.8%)
CIE-LABlab(56.67, 21.81, -37.85)
CIE-LCHlch(56.67, 43.69, 299.95°)
OKLaboklab(63.5% 0.0386 -0.1058)
OKLCHoklch(63.5% 0.113 290.1)
XYZxyz(28.6000, 24.5886, 59.1049)
Luminance0.2459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7ECA #BECA7E
analogous
#7E98CA #8A7ECA #B07ECA
triadic
#8A7ECA #CA8A7E #7ECA8A
tetradic
#8A7ECA #CA7E98 #BECA7E #7ECAB0
square
#8A7ECA #CA7E98 #BECA7E #7ECAB0
split-complementary
#8A7ECA #CAB07E #98CA7E
monochromatic
#493C92 #6353B8 #8A7ECA #B1A9DC #D9D5EE

Accessibility & contrast

On white

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

On black

5.92
#8A7ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7ECA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7ECA#FFFFFF#000000##000000
##8A7ECA1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a7eca;
/* rgb */ color: rgb(138, 126, 202);
/* oklch */ color: oklch(63.5% 0.113 290.1);
Tailwind
colors: {
  custom: {
    50: '#aea3da',
    500: '#8a7eca',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eca;
$custom-light: #aea3da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eca",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 249.474,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.635,
    "c": 0.11262,
    "h": 290.1
  },
  "luminance": 0.24589
}

Semantic roles & 50–950 ramp

primary
#8A7ECA
secondary
#DBDFC5
accent
#B531A0
background
#FAFAFD
surface
#F5F3FB
border
#CFCDD4
text
#100F15
muted
#7F7F83

Preview Lab

Preview with #8A7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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