#8A7BE9#8A7BE9

#8A7BE9 is a light, vivid blue. Relative luminance 0.255; OKLCH L 64.7% C 0.160 H 287.3°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7BE9
RGBrgb(138, 123, 233)
HSLhsl(248, 71%, 70%)
HSVhsv(248, 47%, 91%)
CMYKcmyk(40.8%, 47.2%, 0%, 8.6%)
CIE-LABlab(57.51, 31.94, -53.94)
CIE-LCHlch(57.51, 62.69, 300.63°)
OKLaboklab(64.65% 0.0476 -0.1527)
OKLCHoklch(64.65% 0.16 287.3)
XYZxyz(32.2680, 25.4513, 80.2874)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BE9 #DAE97B
analogous
#7BA3E9 #8A7BE9 #C17BE9
triadic
#8A7BE9 #E98A7B #7BE98A
tetradic
#8A7BE9 #E97BA3 #DAE97B #7BE9C1
square
#8A7BE9 #E97BA3 #DAE97B #7BE9C1
split-complementary
#8A7BE9 #E9C17B #A3E97B
monochromatic
#3821C8 #5C47E0 #8A7BE9 #B8AFF2 #E7E4FA

Accessibility & contrast

On white

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

On black

6.09
#8A7BE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BE9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BE9#FFFFFF#000000##000000
##8A7BE91.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DED
Deuteranopia (green-blind)
#4F87E6
Tritanopia (blue-blind)
#6F91A7
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7be9;
/* rgb */ color: rgb(138, 123, 233);
/* oklch */ color: oklch(64.7% 0.160 287.3);
Tailwind
colors: {
  custom: {
    50: '#b0a1f0',
    500: '#8a7be9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7be9;
$custom-light: #b0a1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7be9",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 233
  },
  "hsl": {
    "h": 248.182,
    "s": 71.429,
    "l": 69.804
  },
  "oklch": {
    "l": 0.64651,
    "c": 0.15995,
    "h": 287.3
  },
  "luminance": 0.25452
}

Semantic roles & 50–950 ramp

primary
#8A7BE9
secondary
#EBEFD0
accent
#D312B9
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BE9

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

Preview Lab → · Contrast checker → · Palette generator →

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