#8A7BDF#8A7BDF

#8A7BDF is a light, vivid blue. Relative luminance 0.249; OKLCH L 64.1% C 0.146 H 288.4°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A7BDF
RGBrgb(138, 123, 223)
HSLhsl(249, 61%, 68%)
HSVhsv(249, 45%, 87%)
CMYKcmyk(38.1%, 44.8%, 0%, 12.5%)
CIE-LABlab(56.97, 29.19, -49.21)
CIE-LCHlch(56.97, 57.21, 300.67°)
OKLaboklab(64.07% 0.0463 -0.1389)
OKLCHoklch(64.07% 0.146 288.4)
XYZxyz(30.8798, 24.8960, 72.9761)
Luminance0.2490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7BDF #D0DF7B
analogous
#7B9EDF #8A7BDF #BC7BDF
triadic
#8A7BDF #DF8A7B #7BDF8A
tetradic
#8A7BDF #DF7B9E #D0DF7B #7BDFBC
square
#8A7BDF #DF7B9E #D0DF7B #7BDFBC
split-complementary
#8A7BDF #DFBC7B #9EDF7B
monochromatic
#402CB4 #5E4AD3 #8A7BDF #B6ACEB #E1DEF7

Accessibility & contrast

On white

3.51
#8A7BDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#8A7BDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7BDF
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7BDF#FFFFFF#000000##000000
##8A7BDF1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#578BE3
Deuteranopia (green-blind)
#5786DD
Tritanopia (blue-blind)
#738FA2
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8a7bdf;
/* rgb */ color: rgb(138, 123, 223);
/* oklch */ color: oklch(64.1% 0.146 288.4);
Tailwind
colors: {
  custom: {
    50: '#b0a1e9',
    500: '#8a7bdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a7bdf;
$custom-light: #b0a1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7bdf",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 223
  },
  "hsl": {
    "h": 249,
    "s": 60.976,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6407,
    "c": 0.14638,
    "h": 288.4
  },
  "luminance": 0.24897
}

Semantic roles & 50–950 ramp

primary
#8A7BDF
secondary
#E6EACB
accent
#C91DAF
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110F16
muted
#807E84

Preview Lab

Preview with #8A7BDF

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

Preview Lab → · Contrast checker → · Palette generator →

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