#8A7EF6#8A7EF6

#8A7EF6 is a light, vivid blue. Relative luminance 0.270; OKLCH L 66.0% C 0.173 H 285.2°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF6
RGBrgb(138, 126, 246)
HSLhsl(246, 87%, 73%)
HSVhsv(246, 49%, 96%)
CMYKcmyk(43.9%, 48.8%, 0%, 3.5%)
CIE-LABlab(58.95, 33.84, -58.85)
CIE-LCHlch(58.95, 67.89, 299.90°)
OKLaboklab(65.97% 0.0453 -0.1671)
OKLCHoklch(65.97% 0.173 285.2)
XYZxyz(34.5718, 26.9774, 90.5565)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF6 #EAF67E
analogous
#7EAEF6 #8A7EF6 #C67EF6
triadic
#8A7EF6 #F68A7E #7EF68A
tetradic
#8A7EF6 #F67EAE #EAF67E #7EF6C6
square
#8A7EF6 #F67EAE #EAF67E #7EF6C6
split-complementary
#8A7EF6 #F6C67E #AEF67E
monochromatic
#2610E9 #5645F2 #8A7EF6 #BEB7FA #E5E2FD

Accessibility & contrast

On white

3.28
#8A7EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#8A7EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF6#FFFFFF#000000##000000
##8A7EF61.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B91FA
Deuteranopia (green-blind)
#478AF3
Tritanopia (blue-blind)
#6897AE
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7ef6;
/* rgb */ color: rgb(138, 126, 246);
/* oklch */ color: oklch(66.0% 0.173 285.2);
Tailwind
colors: {
  custom: {
    50: '#b2a3fa',
    500: '#8a7ef6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef6;
$custom-light: #b2a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef6",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 246,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65969,
    "c": 0.17312,
    "h": 285.2
  },
  "luminance": 0.26979
}

Semantic roles & 50–950 ramp

primary
#8A7EF6
secondary
#F2F5D6
accent
#E402CD
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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