#8A7CFB#8A7CFB

#8A7CFB is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.9% C 0.182 H 285.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A7CFB
RGBrgb(138, 124, 251)
HSLhsl(247, 94%, 74%)
HSVhsv(247, 51%, 98%)
CMYKcmyk(45%, 50.6%, 0%, 1.6%)
CIE-LABlab(58.77, 36.42, -61.90)
CIE-LCHlch(58.77, 71.82, 300.47°)
OKLaboklab(65.93% 0.048 -0.1761)
OKLCHoklch(65.93% 0.183 285.2)
XYZxyz(35.0964, 26.7821, 94.5683)
Luminance0.2678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CFB #EDFB7C
analogous
#7CADFB #8A7CFB #C97CFB
triadic
#8A7CFB #FB8A7C #7CFB8A
tetradic
#8A7CFB #FB7CAD #EDFB7C #7CFBC9
square
#8A7CFB #FB7CAD #EDFB7C #7CFBC9
split-complementary
#8A7CFB #FBC97C #ADFB7C
monochromatic
#2207F5 #5541F9 #8A7CFB #BFB7FD #E4E1FE

Accessibility & contrast

On white

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

On black

6.36
#8A7CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CFB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CFB#FFFFFF#000000##000000
##8A7CFB1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FF
Deuteranopia (green-blind)
#3D8AF8
Tritanopia (blue-blind)
#6597B0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7cfb;
/* rgb */ color: rgb(138, 124, 251);
/* oklch */ color: oklch(65.9% 0.182 285.2);
Tailwind
colors: {
  custom: {
    50: '#b2a2fd',
    500: '#8a7cfb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cfb;
$custom-light: #b2a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cfb",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 246.614,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.65926,
    "c": 0.1825,
    "h": 285.2
  },
  "luminance": 0.26784
}

Semantic roles & 50–950 ramp

primary
#8A7CFB
secondary
#F3F6D5
accent
#E600CC
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F18
muted
#807F86

Preview Lab

Preview with #8A7CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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