#8A7BEF#8A7BEF

#8A7BEF is a light, vivid blue. Relative luminance 0.258; OKLCH L 65.0% C 0.168 H 286.7°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A7BEF
RGBrgb(138, 123, 239)
HSLhsl(248, 78%, 71%)
HSVhsv(248, 49%, 94%)
CMYKcmyk(42.3%, 48.5%, 0%, 6.3%)
CIE-LABlab(57.85, 33.61, -56.75)
CIE-LCHlch(57.85, 65.95, 300.64°)
OKLaboklab(65.01% 0.0482 -0.1609)
OKLCHoklch(65.01% 0.168 286.7)
XYZxyz(33.1397, 25.7999, 84.8784)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BEF #E0EF7B
analogous
#7BA6EF #8A7BEF #C47BEF
triadic
#8A7BEF #EF8A7B #7BEF8A
tetradic
#8A7BEF #EF7BA6 #E0EF7B #7BEFC4
square
#8A7BEF #EF7BA6 #E0EF7B #7BEFC4
split-complementary
#8A7BEF #EFC47B #A6EF7B
monochromatic
#321AD6 #5A44E8 #8A7BEF #BAB2F6 #E7E4FC

Accessibility & contrast

On white

3.41
#8A7BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A7BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BEF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BEF#FFFFFF#000000##000000
##8A7BEF1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF3
Deuteranopia (green-blind)
#4988EC
Tritanopia (blue-blind)
#6C93AA
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7bef;
/* rgb */ color: rgb(138, 123, 239);
/* oklch */ color: oklch(65.0% 0.168 286.7);
Tailwind
colors: {
  custom: {
    50: '#b1a1f5',
    500: '#8a7bef',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bef;
$custom-light: #b1a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bef",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 239
  },
  "hsl": {
    "h": 247.759,
    "s": 78.378,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6501,
    "c": 0.16799,
    "h": 286.7
  },
  "luminance": 0.25801
}

Semantic roles & 50–950 ramp

primary
#8A7BEF
secondary
#EEF2D3
accent
#DB0BC0
background
#FBF9FF
surface
#F6F2FE
border
#D0CCD6
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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