#8A7EF8#8A7EF8

#8A7EF8 is a light, vivid blue. Relative luminance 0.271; OKLCH L 66.1% C 0.176 H 285.0°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF8
RGBrgb(138, 126, 248)
HSLhsl(246, 90%, 73%)
HSVhsv(246, 49%, 97%)
CMYKcmyk(44.4%, 49.2%, 0%, 2.7%)
CIE-LABlab(59.07, 34.41, -59.77)
CIE-LCHlch(59.07, 68.97, 299.93°)
OKLaboklab(66.09% 0.0455 -0.1698)
OKLCHoklch(66.09% 0.176 285)
XYZxyz(34.8804, 27.1008, 92.1818)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF8 #ECF87E
analogous
#7EAFF8 #8A7EF8 #C77EF8
triadic
#8A7EF8 #F88A7E #7EF88A
tetradic
#8A7EF8 #F87EAF #ECF87E #7EF8C7
square
#8A7EF8 #F87EAF #ECF87E #7EF8C7
split-complementary
#8A7EF8 #F8C77E #AFF87E
monochromatic
#230DEF #5544F5 #8A7EF8 #BFB8FB #E5E2FD

Accessibility & contrast

On white

3.27
#8A7EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#8A7EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF8#FFFFFF#000000##000000
##8A7EF81.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4992FC
Deuteranopia (green-blind)
#458AF5
Tritanopia (blue-blind)
#6798AF
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7ef8;
/* rgb */ color: rgb(138, 126, 248);
/* oklch */ color: oklch(66.1% 0.176 285.0);
Tailwind
colors: {
  custom: {
    50: '#b2a3fb',
    500: '#8a7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef8;
$custom-light: #b2a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef8",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 245.902,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.66091,
    "c": 0.17579,
    "h": 285
  },
  "luminance": 0.27102
}

Semantic roles & 50–950 ramp

primary
#8A7EF8
secondary
#F2F6D5
accent
#E600CF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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