#8A7BDB#8A7BDB

#8A7BDB is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.141 H 288.9°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7BDB
RGBrgb(138, 123, 219)
HSLhsl(249, 57%, 67%)
HSVhsv(249, 44%, 86%)
CMYKcmyk(37%, 43.8%, 0%, 14.1%)
CIE-LABlab(56.77, 28.10, -47.30)
CIE-LCHlch(56.77, 55.01, 300.71°)
OKLaboklab(63.84% 0.0457 -0.1333)
OKLCHoklch(63.84% 0.141 288.9)
XYZxyz(30.3469, 24.6828, 70.1694)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BDB #CCDB7B
analogous
#7B9CDB #8A7BDB #BA7BDB
triadic
#8A7BDB #DB8A7B #7BDB8A
tetradic
#8A7BDB #DB7B9C #CCDB7B #7BDBBA
square
#8A7BDB #DB7B9C #CCDB7B #7BDBBA
split-complementary
#8A7BDB #DBBA7B #9CDB7B
monochromatic
#432FAD #5F4BCE #8A7BDB #B5ABE8 #DFDBF5

Accessibility & contrast

On white

3.54
#8A7BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#8A7BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BDB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BDB#FFFFFF#000000##000000
##8A7BDB1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8ADF
Deuteranopia (green-blind)
#5A86D9
Tritanopia (blue-blind)
#758EA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7bdb;
/* rgb */ color: rgb(138, 123, 219);
/* oklch */ color: oklch(63.8% 0.141 288.9);
Tailwind
colors: {
  custom: {
    50: '#afa1e6',
    500: '#8a7bdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bdb;
$custom-light: #afa1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bdb",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 249.375,
    "s": 57.143,
    "l": 67.059
  },
  "oklch": {
    "l": 0.63844,
    "c": 0.1409,
    "h": 288.9
  },
  "luminance": 0.24684
}

Semantic roles & 50–950 ramp

primary
#8A7BDB
secondary
#E3E8CA
accent
#C521AB
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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