#8A7DEF#8A7DEF

#8A7DEF is a light, vivid blue. Relative luminance 0.263; OKLCH L 65.4% C 0.165 H 286.1°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A7DEF
RGBrgb(138, 125, 239)
HSLhsl(247, 78%, 71%)
HSVhsv(247, 48%, 94%)
CMYKcmyk(42.3%, 47.7%, 0%, 6.3%)
CIE-LABlab(58.32, 32.45, -55.99)
CIE-LCHlch(58.32, 64.71, 300.10°)
OKLaboklab(65.37% 0.0458 -0.1587)
OKLCHoklch(65.37% 0.165 286.1)
XYZxyz(33.3904, 26.3012, 84.9619)
Luminance0.2630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DEF #E2EF7D
analogous
#7DA9EF #8A7DEF #C37DEF
triadic
#8A7DEF #EF8A7D #7DEF8A
tetradic
#8A7DEF #EF7DA9 #E2EF7D #7DEFC3
square
#8A7DEF #EF7DA9 #E2EF7D #7DEFC3
split-complementary
#8A7DEF #EFC37D #A9EF7D
monochromatic
#301AD7 #5947E8 #8A7DEF #BBB3F6 #E6E4FC

Accessibility & contrast

On white

3.35
#8A7DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#8A7DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DEF
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DEF#FFFFFF#000000##000000
##8A7DEF1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF3
Deuteranopia (green-blind)
#4C89EC
Tritanopia (blue-blind)
#6C95AB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7def;
/* rgb */ color: rgb(138, 125, 239);
/* oklch */ color: oklch(65.4% 0.165 286.1);
Tailwind
colors: {
  custom: {
    50: '#b1a3f5',
    500: '#8a7def',
    950: '#000000',
  },
}
SCSS
$custom: #8a7def;
$custom-light: #b1a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7def",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 246.842,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65367,
    "c": 0.16517,
    "h": 286.1
  },
  "luminance": 0.26302
}

Semantic roles & 50–950 ramp

primary
#8A7DEF
secondary
#EFF3D5
accent
#DA0BC3
background
#FBFAFF
surface
#F6F3FE
border
#D0CDD6
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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