#8A7AF2#8A7AF2

#8A7AF2 is a light, vivid blue. Relative luminance 0.257; OKLCH L 65.0% C 0.173 H 286.6°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF2
RGBrgb(138, 122, 242)
HSLhsl(248, 82%, 71%)
HSVhsv(248, 50%, 95%)
CMYKcmyk(43%, 49.6%, 0%, 5.1%)
CIE-LABlab(57.78, 35.03, -58.51)
CIE-LCHlch(57.78, 68.20, 300.91°)
OKLaboklab(65.02% 0.0497 -0.1661)
OKLCHoklch(65.02% 0.173 286.6)
XYZxyz(33.4632, 25.7318, 87.1908)
Luminance0.2573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF2 #E2F27A
analogous
#7AA6F2 #8A7AF2 #C67AF2
triadic
#8A7AF2 #F28A7A #7AF28A
tetradic
#8A7AF2 #F27AA6 #E2F27A #7AF2C6
square
#8A7AF2 #F27AA6 #E2F27A #7AF2C6
split-complementary
#8A7AF2 #F2C67A #A6F27A
monochromatic
#3016DC #5942ED #8A7AF2 #BBB2F7 #E6E3FC

Accessibility & contrast

On white

3.42
#8A7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#8A7AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF2#FFFFFF#000000##000000
##8A7AF21.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#4487EF
Tritanopia (blue-blind)
#6A93AB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7af2;
/* rgb */ color: rgb(138, 122, 242);
/* oklch */ color: oklch(65.0% 0.173 286.6);
Tailwind
colors: {
  custom: {
    50: '#b1a0f7',
    500: '#8a7af2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af2;
$custom-light: #b1a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af2",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 248,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65016,
    "c": 0.17338,
    "h": 286.6
  },
  "luminance": 0.25733
}

Semantic roles & 50–950 ramp

primary
#8A7AF2
secondary
#EFF3D4
accent
#DF07C2
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F17
muted
#807E85

Preview Lab

Preview with #8A7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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