#8C7AFA#8C7AFA

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

Color values

HEX#8C7AFA
RGBrgb(140, 122, 250)
HSLhsl(248, 93%, 73%)
HSVhsv(248, 51%, 98%)
CMYKcmyk(44%, 51.2%, 0%, 2%)
CIE-LABlab(58.41, 37.73, -61.92)
CIE-LCHlch(58.41, 72.51, 301.36°)
OKLaboklab(65.68% 0.0526 -0.1761)
OKLCHoklch(65.68% 0.184 286.6)
XYZxyz(35.0251, 26.3952, 93.6733)
Luminance0.2640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C7AFA #E8FA7A
analogous
#7AA8FA #8C7AFA #CC7AFA
triadic
#8C7AFA #FA8C7A #7AFA8C
tetradic
#8C7AFA #FA7AA8 #E8FA7A #7AFACC
square
#8C7AFA #FA7AA8 #E8FA7A #7AFACC
split-complementary
#8C7AFA #FACC7A #A8FA7A
monochromatic
#2A09F1 #593FF8 #8C7AFA #BFB5FC #E6E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C7AFA#FFFFFF#000000##000000
##8C7AFA1.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)
#3F90FE
Deuteranopia (green-blind)
#3C89F7
Tritanopia (blue-blind)
#6A95AF
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8c7afa;
/* rgb */ color: rgb(140, 122, 250);
/* oklch */ color: oklch(65.7% 0.184 286.6);
Tailwind
colors: {
  custom: {
    50: '#b3a1fd',
    500: '#8c7afa',
    950: '#000000',
  },
}
SCSS
$custom: #8c7afa;
$custom-light: #b3a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c7afa",
  "rgb": {
    "r": 140,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 248.438,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65676,
    "c": 0.18377,
    "h": 286.6
  },
  "luminance": 0.26397
}

Semantic roles & 50–950 ramp

primary
#8C7AFA
secondary
#F1F6D5
accent
#E600C5
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #8C7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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