#8A7EF4#8A7EF4

#8A7EF4 is a light, vivid blue. Relative luminance 0.269; OKLCH L 65.8% C 0.170 H 285.3°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A7EF4
RGBrgb(138, 126, 244)
HSLhsl(246, 84%, 73%)
HSVhsv(246, 48%, 96%)
CMYKcmyk(43.4%, 48.4%, 0%, 4.3%)
CIE-LABlab(58.84, 33.27, -57.93)
CIE-LCHlch(58.84, 66.81, 299.87°)
OKLaboklab(65.85% 0.0451 -0.1644)
OKLCHoklch(65.85% 0.17 285.3)
XYZxyz(34.2665, 26.8552, 88.9485)
Luminance0.2686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EF4 #E8F47E
analogous
#7EADF4 #8A7EF4 #C57EF4
triadic
#8A7EF4 #F48A7E #7EF48A
tetradic
#8A7EF4 #F47EAD #E8F47E #7EF4C5
square
#8A7EF4 #F47EAD #E8F47E #7EF4C5
split-complementary
#8A7EF4 #F4C57E #ADF47E
monochromatic
#2913E4 #5746EF #8A7EF4 #BDB6F9 #E5E3FD

Accessibility & contrast

On white

3.30
#8A7EF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#8A7EF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EF4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EF4#FFFFFF#000000##000000
##8A7EF41.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C91F8
Deuteranopia (green-blind)
#498AF1
Tritanopia (blue-blind)
#6997AD
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7ef4;
/* rgb */ color: rgb(138, 126, 244);
/* oklch */ color: oklch(65.8% 0.170 285.3);
Tailwind
colors: {
  custom: {
    50: '#b1a3f8',
    500: '#8a7ef4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7ef4;
$custom-light: #b1a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7ef4",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 246.102,
    "s": 84.286,
    "l": 72.549
  },
  "oklch": {
    "l": 0.65847,
    "c": 0.17046,
    "h": 285.3
  },
  "luminance": 0.26857
}

Semantic roles & 50–950 ramp

primary
#8A7EF4
secondary
#F1F5D6
accent
#E105CA
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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