#8A7BDA#8A7BDA

#8A7BDA is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.8% C 0.140 H 289.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A7BDA
RGBrgb(138, 123, 218)
HSLhsl(249, 56%, 67%)
HSVhsv(249, 44%, 85%)
CMYKcmyk(36.7%, 43.6%, 0%, 14.5%)
CIE-LABlab(56.71, 27.83, -46.82)
CIE-LCHlch(56.71, 54.46, 300.73°)
OKLaboklab(63.79% 0.0456 -0.1319)
OKLCHoklch(63.79% 0.14 289.1)
XYZxyz(30.2157, 24.6303, 69.4782)
Luminance0.2463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BDA #CBDA7B
analogous
#7B9CDA #8A7BDA #BA7BDA
triadic
#8A7BDA #DA8A7B #7BDA8A
tetradic
#8A7BDA #DA7B9C #CBDA7B #7BDABA
square
#8A7BDA #DA7B9C #CBDA7B #7BDABA
split-complementary
#8A7BDA #DABA7B #9CDA7B
monochromatic
#4330AB #604BCD #8A7BDA #B4ABE7 #DFDBF5

Accessibility & contrast

On white

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

On black

5.93
#8A7BDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BDA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BDA#FFFFFF#000000##000000
##8A7BDA1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8ADE
Deuteranopia (green-blind)
#5B86D8
Tritanopia (blue-blind)
#758DA0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a7bda;
/* rgb */ color: rgb(138, 123, 218);
/* oklch */ color: oklch(63.8% 0.140 289.1);
Tailwind
colors: {
  custom: {
    50: '#afa1e6',
    500: '#8a7bda',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bda;
$custom-light: #afa1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bda",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 218
  },
  "hsl": {
    "h": 249.474,
    "s": 56.213,
    "l": 66.863
  },
  "oklch": {
    "l": 0.63788,
    "c": 0.13953,
    "h": 289.1
  },
  "luminance": 0.24631
}

Semantic roles & 50–950 ramp

primary
#8A7BDA
secondary
#E3E8C9
accent
#C422AA
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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