#8A7EFC#8A7EFC

#8A7EFC is a light, vivid blue. Relative luminance 0.274; OKLCH L 66.3% C 0.181 H 284.6°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A7EFC
RGBrgb(138, 126, 252)
HSLhsl(246, 95%, 74%)
HSVhsv(246, 50%, 99%)
CMYKcmyk(45.2%, 50%, 0%, 1.2%)
CIE-LABlab(59.30, 35.54, -61.61)
CIE-LCHlch(59.30, 71.13, 299.98°)
OKLaboklab(66.34% 0.0458 -0.1752)
OKLCHoklch(66.34% 0.181 284.6)
XYZxyz(35.5076, 27.3517, 95.4851)
Luminance0.2735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EFC #F0FC7E
analogous
#7EB1FC #8A7EFC #C97EFC
triadic
#8A7EFC #FC8A7E #7EFC8A
tetradic
#8A7EFC #FC7EB1 #F0FC7E #7EFCC9
square
#8A7EFC #FC7EB1 #F0FC7E #7EFCC9
split-complementary
#8A7EFC #FCC97E #B1FC7E
monochromatic
#1E06F9 #5442FB #8A7EFC #C0BAFD #E4E1FE

Accessibility & contrast

On white

3.25
#8A7EFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#8A7EFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EFC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EFC#FFFFFF#000000##000000
##8A7EFC1.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4593FF
Deuteranopia (green-blind)
#408BF9
Tritanopia (blue-blind)
#6599B1
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a7efc;
/* rgb */ color: rgb(138, 126, 252);
/* oklch */ color: oklch(66.3% 0.181 284.6);
Tailwind
colors: {
  custom: {
    50: '#b2a3fe',
    500: '#8a7efc',
    950: '#000000',
  },
}
SCSS
$custom: #8a7efc;
$custom-light: #b2a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7efc",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 245.714,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.66339,
    "c": 0.18108,
    "h": 284.6
  },
  "luminance": 0.27353
}

Semantic roles & 50–950 ramp

primary
#8A7EFC
secondary
#F3F7D4
accent
#E600D0
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F18
muted
#807F86

Preview Lab

Preview with #8A7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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