#8A7FDB#8A7FDB

#8A7FDB is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.6% C 0.135 H 287.5°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7FDB
RGBrgb(138, 127, 219)
HSLhsl(247, 56%, 68%)
HSVhsv(247, 42%, 86%)
CMYKcmyk(37%, 42%, 0%, 14.1%)
CIE-LABlab(57.75, 25.76, -45.74)
CIE-LCHlch(57.75, 52.49, 299.38°)
OKLaboklab(64.59% 0.0405 -0.1287)
OKLCHoklch(64.59% 0.135 287.5)
XYZxyz(30.8533, 25.6956, 70.3382)
Luminance0.2570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FDB #D0DB7F
analogous
#7FA2DB #8A7FDB #B87FDB
triadic
#8A7FDB #DB8A7F #7FDB8A
tetradic
#8A7FDB #DB7FA2 #D0DB7F #7FDBB8
square
#8A7FDB #DB7FA2 #D0DB7F #7FDBB8
split-complementary
#8A7FDB #DBB87F #A2DB7F
monochromatic
#4031AF #5E4FCE #8A7FDB #B6AFE8 #E1DFF6

Accessibility & contrast

On white

3.42
#8A7FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#8A7FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FDB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FDB#FFFFFF#000000##000000
##8A7FDB1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#608DDE
Deuteranopia (green-blind)
#5F88D9
Tritanopia (blue-blind)
#7491A2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7fdb;
/* rgb */ color: rgb(138, 127, 219);
/* oklch */ color: oklch(64.6% 0.135 287.5);
Tailwind
colors: {
  custom: {
    50: '#afa4e6',
    500: '#8a7fdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fdb;
$custom-light: #afa4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fdb",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 219
  },
  "hsl": {
    "h": 247.174,
    "s": 56.098,
    "l": 67.843
  },
  "oklch": {
    "l": 0.64588,
    "c": 0.13495,
    "h": 287.5
  },
  "luminance": 0.25696
}

Semantic roles & 50–950 ramp

primary
#8A7FDB
secondary
#E6E9CD
accent
#C422B0
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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