#8A7EF1#8A7EF1

#8A7EF1 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.7% C 0.166 H 285.6°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF1
RGBrgb(138, 126, 241)
HSLhsl(246, 80%, 72%)
HSVhsv(246, 48%, 95%)
CMYKcmyk(42.7%, 47.7%, 0%, 5.5%)
CIE-LABlab(58.67, 32.43, -56.54)
CIE-LCHlch(58.67, 65.18, 299.84°)
OKLaboklab(65.67% 0.0448 -0.1603)
OKLCHoklch(65.67% 0.166 285.6)
XYZxyz(33.8147, 26.6745, 86.5690)
Luminance0.2668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF1 #E5F17E
analogous
#7EACF1 #8A7EF1 #C47EF1
triadic
#8A7EF1 #F18A7E #7EF18A
tetradic
#8A7EF1 #F17EAC #E5F17E #7EF1C4
square
#8A7EF1 #F17EAC #E5F17E #7EF1C4
split-complementary
#8A7EF1 #F1C47E #ACF17E
monochromatic
#2C18DD #5847EB #8A7EF1 #BCB5F7 #E6E3FC

Accessibility & contrast

On white

3.31
#8A7EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#8A7EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF1#FFFFFF#000000##000000
##8A7EF11.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F90F5
Deuteranopia (green-blind)
#4C8AEE
Tritanopia (blue-blind)
#6B96AC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7ef1;
/* rgb */ color: rgb(138, 126, 241);
/* oklch */ color: oklch(65.7% 0.166 285.6);
Tailwind
colors: {
  custom: {
    50: '#b1a3f6',
    500: '#8a7ef1',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef1;
$custom-light: #b1a3f6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef1",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 241
  },
  "hsl": {
    "h": 246.261,
    "s": 80.42,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65666,
    "c": 0.16645,
    "h": 285.6
  },
  "luminance": 0.26676
}

Semantic roles & 50–950 ramp

primary
#8A7EF1
secondary
#F1F4D7
accent
#DD09C7
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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