#8A7EFA#8A7EFA

#8A7EFA is a light, vivid blue. Relative luminance 0.272; OKLCH L 66.2% C 0.178 H 284.8°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A7EFA
RGBrgb(138, 126, 250)
HSLhsl(246, 93%, 74%)
HSVhsv(246, 50%, 98%)
CMYKcmyk(44.8%, 49.6%, 0%, 2%)
CIE-LABlab(59.18, 34.98, -60.69)
CIE-LCHlch(59.18, 70.05, 299.95°)
OKLaboklab(66.22% 0.0456 -0.1725)
OKLCHoklch(66.22% 0.178 284.8)
XYZxyz(35.1924, 27.2256, 93.8247)
Luminance0.2723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EFA #EEFA7E
analogous
#7EB0FA #8A7EFA #C87EFA
triadic
#8A7EFA #FA8A7E #7EFA8A
tetradic
#8A7EFA #FA7EB0 #EEFA7E #7EFAC8
square
#8A7EFA #FA7EB0 #EEFA7E #7EFAC8
split-complementary
#8A7EFA #FAC87E #B0FA7E
monochromatic
#2009F4 #5543F8 #8A7EFA #BFB9FC #E4E2FE

Accessibility & contrast

On white

3.26
#8A7EFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#8A7EFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EFA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EFA#FFFFFF#000000##000000
##8A7EFA1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4792FE
Deuteranopia (green-blind)
#428BF7
Tritanopia (blue-blind)
#6698B0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7efa;
/* rgb */ color: rgb(138, 126, 250);
/* oklch */ color: oklch(66.2% 0.178 284.8);
Tailwind
colors: {
  custom: {
    50: '#b2a3fd',
    500: '#8a7efa',
    950: '#000000',
  },
}
SCSS
$custom: #8a7efa;
$custom-light: #b2a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7efa",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 245.806,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.66215,
    "c": 0.17844,
    "h": 284.8
  },
  "luminance": 0.27227
}

Semantic roles & 50–950 ramp

primary
#8A7EFA
secondary
#F3F6D5
accent
#E600CF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F18
muted
#807F86

Preview Lab

Preview with #8A7EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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