#8A7BF4#8A7BF4

#8A7BF4 is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.3% C 0.175 H 286.2°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A7BF4
RGBrgb(138, 123, 244)
HSLhsl(247, 85%, 72%)
HSVhsv(247, 50%, 96%)
CMYKcmyk(43.4%, 49.6%, 0%, 4.3%)
CIE-LABlab(58.13, 35.02, -59.06)
CIE-LCHlch(58.13, 68.66, 300.66°)
OKLaboklab(65.32% 0.0486 -0.1677)
OKLCHoklch(65.32% 0.175 286.2)
XYZxyz(33.8886, 26.0995, 88.8225)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BF4 #E5F47B
analogous
#7BA9F4 #8A7BF4 #C77BF4
triadic
#8A7BF4 #F48A7B #7BF48A
tetradic
#8A7BF4 #F47BA9 #E5F47B #7BF4C7
square
#8A7BF4 #F47BA9 #E5F47B #7BF4C7
split-complementary
#8A7BF4 #F4C77B #A9F47B
monochromatic
#2C13E2 #5843EF #8A7BF4 #BCB3F9 #E6E3FD

Accessibility & contrast

On white

3.38
#8A7BF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#8A7BF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BF4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BF4#FFFFFF#000000##000000
##8A7BF41.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#468FF8
Deuteranopia (green-blind)
#4488F1
Tritanopia (blue-blind)
#6994AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7bf4;
/* rgb */ color: rgb(138, 123, 244);
/* oklch */ color: oklch(65.3% 0.175 286.2);
Tailwind
colors: {
  custom: {
    50: '#b2a1f8',
    500: '#8a7bf4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bf4;
$custom-light: #b2a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bf4",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 244
  },
  "hsl": {
    "h": 247.438,
    "s": 84.615,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65315,
    "c": 0.17464,
    "h": 286.2
  },
  "luminance": 0.26101
}

Semantic roles & 50–950 ramp

primary
#8A7BF4
secondary
#F1F5D6
accent
#E104C6
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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