#8A7EFB#8A7EFB

#8A7EFB is a light, vivid blue. Relative luminance 0.273; OKLCH L 66.3% C 0.180 H 284.7°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A7EFB
RGBrgb(138, 126, 251)
HSLhsl(246, 94%, 74%)
HSVhsv(246, 50%, 98%)
CMYKcmyk(45%, 49.8%, 0%, 1.6%)
CIE-LABlab(59.24, 35.26, -61.15)
CIE-LCHlch(59.24, 70.59, 299.97°)
OKLaboklab(66.28% 0.0457 -0.1738)
OKLCHoklch(66.28% 0.18 284.7)
XYZxyz(35.3496, 27.2885, 94.6527)
Luminance0.2729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EFB #EFFB7E
analogous
#7EB1FB #8A7EFB #C97EFB
triadic
#8A7EFB #FB8A7E #7EFB8A
tetradic
#8A7EFB #FB7EB1 #EFFB7E #7EFBC9
square
#8A7EFB #FB7EB1 #EFFB7E #7EFBC9
split-complementary
#8A7EFB #FBC97E #B1FB7E
monochromatic
#1F08F7 #5443F9 #8A7EFB #C0B9FD #E4E1FE

Accessibility & contrast

On white

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

On black

6.46
#8A7EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EFB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EFB#FFFFFF#000000##000000
##8A7EFB1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4692FF
Deuteranopia (green-blind)
#418BF8
Tritanopia (blue-blind)
#6599B1
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a7efb;
/* rgb */ color: rgb(138, 126, 251);
/* oklch */ color: oklch(66.3% 0.180 284.7);
Tailwind
colors: {
  custom: {
    50: '#b2a3fd',
    500: '#8a7efb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7efb;
$custom-light: #b2a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7efb",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 245.76,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.66277,
    "c": 0.17976,
    "h": 284.7
  },
  "luminance": 0.2729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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