#8A7CF2#8A7CF2

#8A7CF2 is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.4% C 0.171 H 286.1°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A7CF2
RGBrgb(138, 124, 242)
HSLhsl(247, 82%, 72%)
HSVhsv(247, 49%, 95%)
CMYKcmyk(43%, 48.8%, 0%, 5.1%)
CIE-LABlab(58.25, 33.87, -57.76)
CIE-LCHlch(58.25, 66.96, 300.39°)
OKLaboklab(65.37% 0.0473 -0.1639)
OKLCHoklch(65.37% 0.171 286.1)
XYZxyz(33.7113, 26.2281, 87.2735)
Luminance0.2623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CF2 #E4F27C
analogous
#7CA9F2 #8A7CF2 #C57CF2
triadic
#8A7CF2 #F28A7C #7CF28A
tetradic
#8A7CF2 #F27CA9 #E4F27C #7CF2C5
square
#8A7CF2 #F27CA9 #E4F27C #7CF2C5
split-complementary
#8A7CF2 #F2C57C #A9F27C
monochromatic
#2E16DE #5844EC #8A7CF2 #BCB4F8 #E6E3FC

Accessibility & contrast

On white

3.36
#8A7CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#8A7CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CF2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CF2#FFFFFF#000000##000000
##8A7CF21.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8FF6
Deuteranopia (green-blind)
#4889EF
Tritanopia (blue-blind)
#6A95AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7cf2;
/* rgb */ color: rgb(138, 124, 242);
/* oklch */ color: oklch(65.4% 0.171 286.1);
Tailwind
colors: {
  custom: {
    50: '#b1a2f7',
    500: '#8a7cf2',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cf2;
$custom-light: #b1a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cf2",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 242
  },
  "hsl": {
    "h": 247.119,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6537,
    "c": 0.17058,
    "h": 286.1
  },
  "luminance": 0.26229
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A7CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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