#8A7BEA#8A7BEA

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

Color values

HEX#8A7BEA
RGBrgb(138, 123, 234)
HSLhsl(248, 73%, 70%)
HSVhsv(248, 47%, 92%)
CMYKcmyk(41%, 47.4%, 0%, 8.2%)
CIE-LABlab(57.57, 32.22, -54.41)
CIE-LCHlch(57.57, 63.23, 300.63°)
OKLaboklab(64.71% 0.0477 -0.1541)
OKLCHoklch(64.71% 0.161 287.2)
XYZxyz(32.4113, 25.5086, 81.0419)
Luminance0.2551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BEA #DBEA7B
analogous
#7BA4EA #8A7BEA #C17BEA
triadic
#8A7BEA #EA8A7B #7BEA8A
tetradic
#8A7BEA #EA7BA4 #DBEA7B #7BEAC1
square
#8A7BEA #EA7BA4 #DBEA7B #7BEAC1
split-complementary
#8A7BEA #EAC17B #A4EA7B
monochromatic
#3720CA #5B46E2 #8A7BEA #B9B0F2 #E8E5FB

Accessibility & contrast

On white

3.44
#8A7BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#8A7BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BEA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BEA#FFFFFF#000000##000000
##8A7BEA1.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8DEE
Deuteranopia (green-blind)
#4E87E7
Tritanopia (blue-blind)
#6E92A7
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8a7bea;
/* rgb */ color: rgb(138, 123, 234);
/* oklch */ color: oklch(64.7% 0.161 287.2);
Tailwind
colors: {
  custom: {
    50: '#b1a1f1',
    500: '#8a7bea',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bea;
$custom-light: #b1a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bea",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 248.108,
    "s": 72.549,
    "l": 70
  },
  "oklch": {
    "l": 0.6471,
    "c": 0.16129,
    "h": 287.2
  },
  "luminance": 0.2551
}

Semantic roles & 50–950 ramp

primary
#8A7BEA
secondary
#ECF0D1
accent
#D511BA
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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