#8A7DF4#8A7DF4

#8A7DF4 is a light, vivid blue. Relative luminance 0.266; OKLCH L 65.7% C 0.172 H 285.6°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF4
RGBrgb(138, 125, 244)
HSLhsl(247, 84%, 72%)
HSVhsv(247, 49%, 96%)
CMYKcmyk(43.4%, 48.8%, 0%, 4.3%)
CIE-LABlab(58.60, 33.86, -58.31)
CIE-LCHlch(58.60, 67.42, 300.14°)
OKLaboklab(65.67% 0.0463 -0.1655)
OKLCHoklch(65.67% 0.172 285.6)
XYZxyz(34.1393, 26.6008, 88.9061)
Luminance0.2660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF4 #E7F47D
analogous
#7DABF4 #8A7DF4 #C67DF4
triadic
#8A7DF4 #F48A7D #7DF48A
tetradic
#8A7DF4 #F47DAB #E7F47D #7DF4C6
square
#8A7DF4 #F47DAB #E7F47D #7DF4C6
split-complementary
#8A7DF4 #F4C67D #ABF47D
monochromatic
#2A13E3 #5745EF #8A7DF4 #BDB5F9 #E6E3FD

Accessibility & contrast

On white

3.32
#8A7DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#8A7DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF4
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF4#FFFFFF#000000##000000
##8A7DF41.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A90F8
Deuteranopia (green-blind)
#4789F1
Tritanopia (blue-blind)
#6996AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7df4;
/* rgb */ color: rgb(138, 125, 244);
/* oklch */ color: oklch(65.7% 0.172 285.6);
Tailwind
colors: {
  custom: {
    50: '#b1a3f8',
    500: '#8a7df4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df4;
$custom-light: #b1a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df4",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 244
  },
  "hsl": {
    "h": 246.555,
    "s": 84.397,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65669,
    "c": 0.17186,
    "h": 285.6
  },
  "luminance": 0.26602
}

Semantic roles & 50–950 ramp

primary
#8A7DF4
secondary
#F1F5D6
accent
#E105C9
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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