#8A7EE3#8A7EE3

#8A7EE3 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.8% C 0.147 H 287.0°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A7EE3
RGBrgb(138, 126, 227)
HSLhsl(247, 64%, 69%)
HSVhsv(247, 44%, 89%)
CMYKcmyk(39.2%, 44.5%, 0%, 11%)
CIE-LABlab(57.91, 28.53, -49.96)
CIE-LCHlch(57.91, 57.53, 299.73°)
OKLaboklab(64.85% 0.0431 -0.141)
OKLCHoklch(64.85% 0.147 287)
XYZxyz(31.8033, 25.8700, 75.9759)
Luminance0.2587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EE3 #D7E37E
analogous
#7EA5E3 #8A7EE3 #BD7EE3
triadic
#8A7EE3 #E38A7E #7EE38A
tetradic
#8A7EE3 #E37EA5 #D7E37E #7EE3BD
square
#8A7EE3 #E37EA5 #D7E37E #7EE3BD
split-complementary
#8A7EE3 #E3BD7E #A5E37E
monochromatic
#3B29BD #5C4CD8 #8A7EE3 #B8B0EE #E5E3F9

Accessibility & contrast

On white

3.40
#8A7EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#8A7EE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EE3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EE3#FFFFFF#000000##000000
##8A7EE31.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#598EE7
Deuteranopia (green-blind)
#5888E1
Tritanopia (blue-blind)
#7192A6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7ee3;
/* rgb */ color: rgb(138, 126, 227);
/* oklch */ color: oklch(64.8% 0.147 287.0);
Tailwind
colors: {
  custom: {
    50: '#b0a3ec',
    500: '#8a7ee3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ee3;
$custom-light: #b0a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ee3",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 247.129,
    "s": 64.331,
    "l": 69.216
  },
  "oklch": {
    "l": 0.64848,
    "c": 0.14746,
    "h": 287
  },
  "luminance": 0.25871
}

Semantic roles & 50–950 ramp

primary
#8A7EE3
secondary
#EAEDD0
accent
#CC19B7
background
#FBFAFE
surface
#F6F3FD
border
#D0CDD5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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