#8A7BF9#8A7BF9

#8A7BF9 is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.6% C 0.181 H 285.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF9
RGBrgb(138, 123, 249)
HSLhsl(247, 91%, 73%)
HSVhsv(247, 51%, 98%)
CMYKcmyk(44.6%, 50.6%, 0%, 2.4%)
CIE-LABlab(58.42, 36.43, -61.36)
CIE-LCHlch(58.42, 71.36, 300.70°)
OKLaboklab(65.63% 0.049 -0.1745)
OKLCHoklch(65.63% 0.181 285.7)
XYZxyz(34.6581, 26.4073, 92.8751)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF9 #EAF97B
analogous
#7BABF9 #8A7BF9 #C97BF9
triadic
#8A7BF9 #F98A7B #7BF98A
tetradic
#8A7BF9 #F97BAB #EAF97B #7BF9C9
square
#8A7BF9 #F97BAB #EAF97B #7BF9C9
split-complementary
#8A7BF9 #F9C97B #ABF97B
monochromatic
#260BEF #5640F6 #8A7BF9 #BEB6FC #E5E2FE

Accessibility & contrast

On white

3.34
#8A7BF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A7BF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF9
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF9#FFFFFF#000000##000000
##8A7BF91.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4190FD
Deuteranopia (green-blind)
#3E89F6
Tritanopia (blue-blind)
#6796AF
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf9;
/* rgb */ color: rgb(138, 123, 249);
/* oklch */ color: oklch(65.6% 0.181 285.7);
Tailwind
colors: {
  custom: {
    50: '#b2a1fc',
    500: '#8a7bf9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf9;
$custom-light: #b2a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf9",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 249
  },
  "hsl": {
    "h": 247.143,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65626,
    "c": 0.18123,
    "h": 285.7
  },
  "luminance": 0.26409
}

Semantic roles & 50–950 ramp

primary
#8A7BF9
secondary
#F2F6D5
accent
#E600CA
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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