#8A7AF4#8A7AF4

#8A7AF4 is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.1% C 0.176 H 286.4°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A7AF4
RGBrgb(138, 122, 244)
HSLhsl(248, 85%, 72%)
HSVhsv(248, 50%, 96%)
CMYKcmyk(43.4%, 50%, 0%, 4.3%)
CIE-LABlab(57.90, 35.60, -59.44)
CIE-LCHlch(57.90, 69.28, 300.92°)
OKLaboklab(65.14% 0.0498 -0.1688)
OKLCHoklch(65.14% 0.176 286.4)
XYZxyz(33.7652, 25.8527, 88.7814)
Luminance0.2585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7AF4 #E4F47A
analogous
#7AA7F4 #8A7AF4 #C77AF4
triadic
#8A7AF4 #F48A7A #7AF48A
tetradic
#8A7AF4 #F47AA7 #E4F47A #7AF4C7
square
#8A7AF4 #F47AA7 #E4F47A #7AF4C7
split-complementary
#8A7AF4 #F4C77A #A7F47A
monochromatic
#2E13E1 #5841EF #8A7AF4 #BCB3F9 #E6E3FD

Accessibility & contrast

On white

3.40
#8A7AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#8A7AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7AF4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7AF4#FFFFFF#000000##000000
##8A7AF41.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#448EF8
Deuteranopia (green-blind)
#4288F1
Tritanopia (blue-blind)
#6994AC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #8a7af4;
/* rgb */ color: rgb(138, 122, 244);
/* oklch */ color: oklch(65.1% 0.176 286.4);
Tailwind
colors: {
  custom: {
    50: '#b2a0f8',
    500: '#8a7af4',
    950: '#000000',
  },
}
SCSS
$custom: #8a7af4;
$custom-light: #b2a0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7af4",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 247.869,
    "s": 84.722,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6514,
    "c": 0.17602,
    "h": 286.4
  },
  "luminance": 0.25854
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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