#8A7CF0#8A7CF0

#8A7CF0 is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.168 H 286.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A7CF0
RGBrgb(138, 124, 240)
HSLhsl(247, 79%, 71%)
HSVhsv(247, 48%, 94%)
CMYKcmyk(42.5%, 48.3%, 0%, 5.9%)
CIE-LABlab(58.14, 33.31, -56.83)
CIE-LCHlch(58.14, 65.87, 300.38°)
OKLaboklab(65.25% 0.0471 -0.1612)
OKLCHoklch(65.25% 0.168 286.3)
XYZxyz(33.4126, 26.1086, 85.7001)
Luminance0.2611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7CF0 #E2F07C
analogous
#7CA8F0 #8A7CF0 #C47CF0
triadic
#8A7CF0 #F08A7C #7CF08A
tetradic
#8A7CF0 #F07CA8 #E2F07C #7CF0C4
square
#8A7CF0 #F07CA8 #E2F07C #7CF0C4
split-complementary
#8A7CF0 #F0C47C #A8F07C
monochromatic
#3019D9 #5945EA #8A7CF0 #BBB3F6 #E6E4FC

Accessibility & contrast

On white

3.38
#8A7CF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#8A7CF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7CF0
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7CF0#FFFFFF#000000##000000
##8A7CF01.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8FF4
Deuteranopia (green-blind)
#4A88ED
Tritanopia (blue-blind)
#6B94AB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7cf0;
/* rgb */ color: rgb(138, 124, 240);
/* oklch */ color: oklch(65.2% 0.168 286.3);
Tailwind
colors: {
  custom: {
    50: '#b1a2f5',
    500: '#8a7cf0',
    950: '#000000',
  },
}
SCSS
$custom: #8a7cf0;
$custom-light: #b1a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7cf0",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 240
  },
  "hsl": {
    "h": 247.241,
    "s": 79.452,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65248,
    "c": 0.16792,
    "h": 286.3
  },
  "luminance": 0.2611
}

Semantic roles & 50–950 ramp

primary
#8A7CF0
secondary
#EFF3D5
accent
#DC0AC2
background
#FBFAFF
surface
#F6F3FE
border
#D0CDD6
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7CF0

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

Preview Lab → · Contrast checker → · Palette generator →

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