#8A7DF3#8A7DF3

#8A7DF3 is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.6% C 0.171 H 285.7°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF3
RGBrgb(138, 125, 243)
HSLhsl(247, 83%, 72%)
HSVhsv(247, 49%, 95%)
CMYKcmyk(43.2%, 48.6%, 0%, 4.7%)
CIE-LABlab(58.55, 33.57, -57.84)
CIE-LCHlch(58.55, 66.88, 300.13°)
OKLaboklab(65.61% 0.0462 -0.1641)
OKLCHoklch(65.61% 0.171 285.7)
XYZxyz(33.9879, 26.5402, 88.1086)
Luminance0.2654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF3 #E6F37D
analogous
#7DABF3 #8A7DF3 #C57DF3
triadic
#8A7DF3 #F38A7D #7DF38A
tetradic
#8A7DF3 #F37DAB #E6F37D #7DF3C5
square
#8A7DF3 #F37DAB #E6F37D #7DF3C5
split-complementary
#8A7DF3 #F3C57D #ABF37D
monochromatic
#2B15E1 #5845EE #8A7DF3 #BCB5F8 #E6E3FC

Accessibility & contrast

On white

3.33
#8A7DF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#8A7DF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF3
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF3#FFFFFF#000000##000000
##8A7DF31.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B90F7
Deuteranopia (green-blind)
#4889F0
Tritanopia (blue-blind)
#6A96AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7df3;
/* rgb */ color: rgb(138, 125, 243);
/* oklch */ color: oklch(65.6% 0.171 285.7);
Tailwind
colors: {
  custom: {
    50: '#b1a3f8',
    500: '#8a7df3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df3;
$custom-light: #b1a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df3",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 243
  },
  "hsl": {
    "h": 246.61,
    "s": 83.099,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65608,
    "c": 0.17052,
    "h": 285.7
  },
  "luminance": 0.26542
}

Semantic roles & 50–950 ramp

primary
#8A7DF3
secondary
#F1F4D7
accent
#E006C8
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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