#8A7DF1#8A7DF1

#8A7DF1 is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.5% C 0.168 H 285.9°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A7DF1
RGBrgb(138, 125, 241)
HSLhsl(247, 81%, 72%)
HSVhsv(247, 48%, 95%)
CMYKcmyk(42.7%, 48.1%, 0%, 5.5%)
CIE-LABlab(58.43, 33.01, -56.92)
CIE-LCHlch(58.43, 65.80, 300.11°)
OKLaboklab(65.49% 0.046 -0.1614)
OKLCHoklch(65.49% 0.168 285.9)
XYZxyz(33.6875, 26.4201, 86.5266)
Luminance0.2642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7DF1 #E4F17D
analogous
#7DAAF1 #8A7DF1 #C47DF1
triadic
#8A7DF1 #F18A7D #7DF18A
tetradic
#8A7DF1 #F17DAA #E4F17D #7DF1C4
square
#8A7DF1 #F17DAA #E4F17D #7DF1C4
split-complementary
#8A7DF1 #F1C47D #AAF17D
monochromatic
#2E18DC #5846EB #8A7DF1 #BCB4F7 #E6E3FC

Accessibility & contrast

On white

3.34
#8A7DF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#8A7DF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7DF1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7DF1#FFFFFF#000000##000000
##8A7DF11.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D90F5
Deuteranopia (green-blind)
#4A89EE
Tritanopia (blue-blind)
#6B95AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7df1;
/* rgb */ color: rgb(138, 125, 241);
/* oklch */ color: oklch(65.5% 0.168 285.9);
Tailwind
colors: {
  custom: {
    50: '#b1a3f6',
    500: '#8a7df1',
    950: '#000000',
  },
}
SCSS
$custom: #8a7df1;
$custom-light: #b1a3f6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7df1",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 241
  },
  "hsl": {
    "h": 246.724,
    "s": 80.556,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65487,
    "c": 0.16784,
    "h": 285.9
  },
  "luminance": 0.26421
}

Semantic roles & 50–950 ramp

primary
#8A7DF1
secondary
#F0F4D6
accent
#DD09C5
background
#FBFAFF
surface
#F6F3FF
border
#D0CDD7
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7DF1

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

Preview Lab → · Contrast checker → · Palette generator →

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