#8A7FDE#8A7FDE

#8A7FDE is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.8% C 0.139 H 287.1°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A7FDE
RGBrgb(138, 127, 222)
HSLhsl(247, 59%, 68%)
HSVhsv(247, 43%, 87%)
CMYKcmyk(37.8%, 42.8%, 0%, 12.9%)
CIE-LABlab(57.90, 26.57, -47.18)
CIE-LCHlch(57.90, 54.15, 299.39°)
OKLaboklab(64.75% 0.041 -0.1329)
OKLCHoklch(64.75% 0.139 287.1)
XYZxyz(31.2518, 25.8550, 72.4370)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FDE #D3DE7F
analogous
#7FA3DE #8A7FDE #B97FDE
triadic
#8A7FDE #DE8A7F #7FDE8A
tetradic
#8A7FDE #DE7FA3 #D3DE7F #7FDEB9
square
#8A7FDE #DE7FA3 #D3DE7F #7FDEB9
split-complementary
#8A7FDE #DEB97F #A3DE7F
monochromatic
#3E2EB4 #5E4ED1 #8A7FDE #B6B0EB #E3E0F7

Accessibility & contrast

On white

3.40
#8A7FDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#8A7FDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FDE
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FDE#FFFFFF#000000##000000
##8A7FDE1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8EE2
Deuteranopia (green-blind)
#5D89DC
Tritanopia (blue-blind)
#7392A4
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7fde;
/* rgb */ color: rgb(138, 127, 222);
/* oklch */ color: oklch(64.8% 0.139 287.1);
Tailwind
colors: {
  custom: {
    50: '#afa4e9',
    500: '#8a7fde',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fde;
$custom-light: #afa4e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fde",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 222
  },
  "hsl": {
    "h": 246.947,
    "s": 59.006,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64753,
    "c": 0.13912,
    "h": 287.1
  },
  "luminance": 0.25856
}

Semantic roles & 50–950 ramp

primary
#8A7FDE
secondary
#E7EBCE
accent
#C71FB3
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FDE

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

Preview Lab → · Contrast checker → · Palette generator →

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