#8A7BEE#8A7BEE

#8A7BEE is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.9% C 0.167 H 286.8°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7BEE
RGBrgb(138, 123, 238)
HSLhsl(248, 77%, 71%)
HSVhsv(248, 48%, 93%)
CMYKcmyk(42%, 48.3%, 0%, 6.7%)
CIE-LABlab(57.79, 33.33, -56.28)
CIE-LCHlch(57.79, 65.41, 300.64°)
OKLaboklab(64.95% 0.0481 -0.1596)
OKLCHoklch(64.95% 0.167 286.8)
XYZxyz(32.9924, 25.7410, 84.1025)
Luminance0.2574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BEE #DFEE7B
analogous
#7BA5EE #8A7BEE #C37BEE
triadic
#8A7BEE #EE8A7B #7BEE8A
tetradic
#8A7BEE #EE7BA5 #DFEE7B #7BEEC3
square
#8A7BEE #EE7BA5 #DFEE7B #7BEEC3
split-complementary
#8A7BEE #EEC37B #A5EE7B
monochromatic
#331BD3 #5A45E7 #8A7BEE #BAB1F5 #E7E4FC

Accessibility & contrast

On white

3.42
#8A7BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#8A7BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BEE
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BEE#FFFFFF#000000##000000
##8A7BEE1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF2
Deuteranopia (green-blind)
#4A88EB
Tritanopia (blue-blind)
#6C93A9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7bee;
/* rgb */ color: rgb(138, 123, 238);
/* oklch */ color: oklch(64.9% 0.167 286.8);
Tailwind
colors: {
  custom: {
    50: '#b1a1f4',
    500: '#8a7bee',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bee;
$custom-light: #b1a1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bee",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 247.826,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64949,
    "c": 0.16665,
    "h": 286.8
  },
  "luminance": 0.25742
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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