#8A7BE8#8A7BE8

#8A7BE8 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.6% C 0.159 H 287.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A7BE8
RGBrgb(138, 123, 232)
HSLhsl(248, 70%, 70%)
HSVhsv(248, 47%, 91%)
CMYKcmyk(40.5%, 47%, 0%, 9%)
CIE-LABlab(57.46, 31.66, -53.47)
CIE-LCHlch(57.46, 62.14, 300.63°)
OKLaboklab(64.59% 0.0475 -0.1513)
OKLCHoklch(64.59% 0.159 287.4)
XYZxyz(32.1256, 25.3943, 79.5372)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BE8 #D9E87B
analogous
#7BA3E8 #8A7BE8 #C17BE8
triadic
#8A7BE8 #E88A7B #7BE88A
tetradic
#8A7BE8 #E87BA3 #D9E87B #7BE8C1
square
#8A7BE8 #E87BA3 #D9E87B #7BE8C1
split-complementary
#8A7BE8 #E8C17B #A3E87B
monochromatic
#3923C6 #5C47DF #8A7BE8 #B8AFF1 #E6E3FA

Accessibility & contrast

On white

3.45
#8A7BE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#8A7BE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BE8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BE8#FFFFFF#000000##000000
##8A7BE81.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#518DEC
Deuteranopia (green-blind)
#5087E5
Tritanopia (blue-blind)
#6F91A6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7be8;
/* rgb */ color: rgb(138, 123, 232);
/* oklch */ color: oklch(64.6% 0.159 287.4);
Tailwind
colors: {
  custom: {
    50: '#b0a1f0',
    500: '#8a7be8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7be8;
$custom-light: #b0a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7be8",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 232
  },
  "hsl": {
    "h": 248.257,
    "s": 70.323,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64591,
    "c": 0.15859,
    "h": 287.4
  },
  "luminance": 0.25395
}

Semantic roles & 50–950 ramp

primary
#8A7BE8
secondary
#EBEFD0
accent
#D213B8
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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