#8A7DF6#8A7DF6

#8A7DF6 is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.8% C 0.175 H 285.4°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF6
RGBrgb(138, 125, 246)
HSLhsl(246, 87%, 73%)
HSVhsv(246, 49%, 96%)
CMYKcmyk(43.9%, 49.2%, 0%, 3.5%)
CIE-LABlab(58.72, 34.42, -59.23)
CIE-LCHlch(58.72, 68.51, 300.16°)
OKLaboklab(65.79% 0.0465 -0.1682)
OKLCHoklch(65.79% 0.175 285.4)
XYZxyz(34.4446, 26.7229, 90.5141)
Luminance0.2672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF6 #E9F67D
analogous
#7DADF6 #8A7DF6 #C67DF6
triadic
#8A7DF6 #F68A7D #7DF68A
tetradic
#8A7DF6 #F67DAD #E9F67D #7DF6C6
square
#8A7DF6 #F67DAD #E9F67D #7DF6C6
split-complementary
#8A7DF6 #F6C67D #ADF67D
monochromatic
#2710E9 #5644F2 #8A7DF6 #BEB6FA #E5E2FD

Accessibility & contrast

On white

3.31
#8A7DF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#8A7DF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF6
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF6#FFFFFF#000000##000000
##8A7DF61.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4991FA
Deuteranopia (green-blind)
#458AF3
Tritanopia (blue-blind)
#6896AE
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7df6;
/* rgb */ color: rgb(138, 125, 246);
/* oklch */ color: oklch(65.8% 0.175 285.4);
Tailwind
colors: {
  custom: {
    50: '#b2a3fa',
    500: '#8a7df6',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df6;
$custom-light: #b2a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df6",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 246.446,
    "s": 87.05,
    "l": 72.745
  },
  "oklch": {
    "l": 0.65791,
    "c": 0.17452,
    "h": 285.4
  },
  "luminance": 0.26724
}

Semantic roles & 50–950 ramp

primary
#8A7DF6
secondary
#F2F5D6
accent
#E402CB
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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