#8A7DF9#8A7DF9

#8A7DF9 is a light, vivid blue. Relative luminance 0.269; OKLCH L 66.0% C 0.178 H 285.2°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF9
RGBrgb(138, 125, 249)
HSLhsl(246, 91%, 73%)
HSVhsv(246, 50%, 98%)
CMYKcmyk(44.6%, 49.8%, 0%, 2.4%)
CIE-LABlab(58.89, 35.27, -60.61)
CIE-LCHlch(58.89, 70.13, 300.20°)
OKLaboklab(65.98% 0.0467 -0.1723)
OKLCHoklch(65.98% 0.178 285.2)
XYZxyz(34.9088, 26.9086, 92.9587)
Luminance0.2691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF9 #ECF97D
analogous
#7DAEF9 #8A7DF9 #C87DF9
triadic
#8A7DF9 #F98A7D #7DF98A
tetradic
#8A7DF9 #F97DAE #ECF97D #7DF9C8
square
#8A7DF9 #F97DAE #ECF97D #7DF9C8
split-complementary
#8A7DF9 #F9C87D #AEF97D
monochromatic
#230BF0 #5542F6 #8A7DF9 #BFB7FC #E5E2FE

Accessibility & contrast

On white

3.29
#8A7DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#8A7DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF9#FFFFFF#000000##000000
##8A7DF91.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4691FD
Deuteranopia (green-blind)
#428AF6
Tritanopia (blue-blind)
#6697AF
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a7df9;
/* rgb */ color: rgb(138, 125, 249);
/* oklch */ color: oklch(66.0% 0.178 285.2);
Tailwind
colors: {
  custom: {
    50: '#b2a3fc',
    500: '#8a7df9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df9;
$custom-light: #b2a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df9",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 246.29,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.65977,
    "c": 0.17849,
    "h": 285.2
  },
  "luminance": 0.2691
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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