#8A7BF3#8A7BF3

#8A7BF3 is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.3% C 0.173 H 286.3°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF3
RGBrgb(138, 123, 243)
HSLhsl(248, 83%, 72%)
HSVhsv(248, 49%, 95%)
CMYKcmyk(43.2%, 49.4%, 0%, 4.7%)
CIE-LABlab(58.07, 34.73, -58.60)
CIE-LCHlch(58.07, 68.12, 300.66°)
OKLaboklab(65.25% 0.0486 -0.1664)
OKLCHoklch(65.25% 0.173 286.3)
XYZxyz(33.7372, 26.0389, 88.0250)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF3 #E4F37B
analogous
#7BA8F3 #8A7BF3 #C67BF3
triadic
#8A7BF3 #F38A7B #7BF38A
tetradic
#8A7BF3 #F37BA8 #E4F37B #7BF3C6
square
#8A7BF3 #F37BA8 #E4F37B #7BF3C6
split-complementary
#8A7BF3 #F3C67B #A8F37B
monochromatic
#2E14DF #5843EE #8A7BF3 #BCB3F8 #E6E3FC

Accessibility & contrast

On white

3.38
#8A7BF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A7BF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF3#FFFFFF#000000##000000
##8A7BF31.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478FF7
Deuteranopia (green-blind)
#4588F0
Tritanopia (blue-blind)
#6A94AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf3;
/* rgb */ color: rgb(138, 123, 243);
/* oklch */ color: oklch(65.3% 0.173 286.3);
Tailwind
colors: {
  custom: {
    50: '#b1a1f8',
    500: '#8a7bf3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf3;
$custom-light: #b1a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf3",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 243
  },
  "hsl": {
    "h": 247.5,
    "s": 83.333,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65254,
    "c": 0.17331,
    "h": 286.3
  },
  "luminance": 0.2604
}

Semantic roles & 50–950 ramp

primary
#8A7BF3
secondary
#F0F4D6
accent
#E006C5
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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