#8A7FEA#8A7FEA

#8A7FEA is a light, vivid blue. Relative luminance 0.265; OKLCH L 65.4% C 0.156 H 285.9°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A7FEA
RGBrgb(138, 127, 234)
HSLhsl(246, 72%, 71%)
HSVhsv(246, 46%, 92%)
CMYKcmyk(41%, 45.7%, 0%, 8.2%)
CIE-LABlab(58.53, 29.89, -52.88)
CIE-LCHlch(58.53, 60.74, 299.47°)
OKLaboklab(65.43% 0.0428 -0.1496)
OKLCHoklch(65.43% 0.156 285.9)
XYZxyz(32.9177, 26.5213, 81.2107)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FEA #DFEA7F
analogous
#7FA9EA #8A7FEA #BF7FEA
triadic
#8A7FEA #EA8A7F #7FEA8A
tetradic
#8A7FEA #EA7FA9 #DFEA7F #7FEABF
square
#8A7FEA #EA7FA9 #DFEA7F #7FEABF
split-complementary
#8A7FEA #EABF7F #A9EA7F
monochromatic
#3322CD #5A4AE1 #8A7FEA #BAB4F3 #E7E5FB

Accessibility & contrast

On white

3.33
#8A7FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#8A7FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FEA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FEA#FFFFFF#000000##000000
##8A7FEA1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5690EE
Deuteranopia (green-blind)
#548AE8
Tritanopia (blue-blind)
#6E95A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7fea;
/* rgb */ color: rgb(138, 127, 234);
/* oklch */ color: oklch(65.4% 0.156 285.9);
Tailwind
colors: {
  custom: {
    50: '#b0a4f1',
    500: '#8a7fea',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fea;
$custom-light: #b0a4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fea",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 246.168,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.65434,
    "c": 0.15557,
    "h": 285.9
  },
  "luminance": 0.26523
}

Semantic roles & 50–950 ramp

primary
#8A7FEA
secondary
#EEF1D4
accent
#D412C0
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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