#8A7DF8#8A7DF8

#8A7DF8 is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.9% C 0.177 H 285.3°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF8
RGBrgb(138, 125, 248)
HSLhsl(246, 90%, 73%)
HSVhsv(246, 50%, 97%)
CMYKcmyk(44.4%, 49.6%, 0%, 2.7%)
CIE-LABlab(58.83, 34.99, -60.15)
CIE-LCHlch(58.83, 69.59, 300.18°)
OKLaboklab(65.92% 0.0466 -0.1709)
OKLCHoklch(65.92% 0.177 285.3)
XYZxyz(34.7532, 26.8463, 92.1394)
Luminance0.2685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF8 #EBF87D
analogous
#7DAEF8 #8A7DF8 #C77DF8
triadic
#8A7DF8 #F88A7D #7DF88A
tetradic
#8A7DF8 #F87DAE #EBF87D #7DF8C7
square
#8A7DF8 #F87DAE #EBF87D #7DF8C7
split-complementary
#8A7DF8 #F8C77D #AEF87D
monochromatic
#250DEE #5643F5 #8A7DF8 #BEB7FB #E5E2FD

Accessibility & contrast

On white

3.30
#8A7DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#8A7DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF8
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF8#FFFFFF#000000##000000
##8A7DF81.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4791FC
Deuteranopia (green-blind)
#438AF5
Tritanopia (blue-blind)
#6797AF
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7df8;
/* rgb */ color: rgb(138, 125, 248);
/* oklch */ color: oklch(65.9% 0.177 285.3);
Tailwind
colors: {
  custom: {
    50: '#b2a3fb',
    500: '#8a7df8',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df8;
$custom-light: #b2a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df8",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 246.341,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.65915,
    "c": 0.17716,
    "h": 285.3
  },
  "luminance": 0.26848
}

Semantic roles & 50–950 ramp

primary
#8A7DF8
secondary
#F2F6D5
accent
#E600CD
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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