#8A7AF3#8A7AF3

#8A7AF3 is a light, vivid blue. Relative luminance 0.258; OKLCH L 65.1% C 0.175 H 286.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF3
RGBrgb(138, 122, 243)
HSLhsl(248, 83%, 72%)
HSVhsv(248, 50%, 95%)
CMYKcmyk(43.2%, 49.8%, 0%, 4.7%)
CIE-LABlab(57.84, 35.31, -58.98)
CIE-LCHlch(57.84, 68.74, 300.91°)
OKLaboklab(65.08% 0.0497 -0.1675)
OKLCHoklch(65.08% 0.175 286.5)
XYZxyz(33.6138, 25.7921, 87.9839)
Luminance0.2579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF3 #E3F37A
analogous
#7AA7F3 #8A7AF3 #C77AF3
triadic
#8A7AF3 #F38A7A #7AF38A
tetradic
#8A7AF3 #F37AA7 #E3F37A #7AF3C7
square
#8A7AF3 #F37AA7 #E3F37A #7AF3C7
split-complementary
#8A7AF3 #F3C77A #A7F37A
monochromatic
#2F14DF #5942EE #8A7AF3 #BBB2F8 #E6E3FC

Accessibility & contrast

On white

3.41
#8A7AF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#8A7AF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF3#FFFFFF#000000##000000
##8A7AF31.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#458EF7
Deuteranopia (green-blind)
#4388F0
Tritanopia (blue-blind)
#6A93AB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7af3;
/* rgb */ color: rgb(138, 122, 243);
/* oklch */ color: oklch(65.1% 0.175 286.5);
Tailwind
colors: {
  custom: {
    50: '#b1a0f8',
    500: '#8a7af3',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af3;
$custom-light: #b1a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af3",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 243
  },
  "hsl": {
    "h": 247.934,
    "s": 83.448,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65078,
    "c": 0.17471,
    "h": 286.5
  },
  "luminance": 0.25793
}

Semantic roles & 50–950 ramp

primary
#8A7AF3
secondary
#F0F4D5
accent
#E006C3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7AF3

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

Preview Lab → · Contrast checker → · Palette generator →

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