#8A7FEF#8A7FEF

#8A7FEF is a light, vivid blue. Relative luminance 0.268; OKLCH L 65.7% C 0.162 H 285.5°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8A7FEF
RGBrgb(138, 127, 239)
HSLhsl(246, 78%, 72%)
HSVhsv(246, 47%, 94%)
CMYKcmyk(42.3%, 46.9%, 0%, 6.3%)
CIE-LABlab(58.80, 31.28, -55.22)
CIE-LCHlch(58.80, 63.47, 299.53°)
OKLaboklab(65.73% 0.0434 -0.1564)
OKLCHoklch(65.73% 0.162 285.5)
XYZxyz(33.6461, 26.8127, 85.0472)
Luminance0.2681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FEF #E4EF7F
analogous
#7FACEF #8A7FEF #C27FEF
triadic
#8A7FEF #EF8A7F #7FEF8A
tetradic
#8A7FEF #EF7FAC #E4EF7F #7FEFC2
square
#8A7FEF #EF7FAC #E4EF7F #7FEFC2
split-complementary
#8A7FEF #EFC27F #ACEF7F
monochromatic
#2E1BD9 #5849E8 #8A7FEF #BCB5F6 #E6E4FC

Accessibility & contrast

On white

3.30
#8A7FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#8A7FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FEF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FEF#FFFFFF#000000##000000
##8A7FEF1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5291F3
Deuteranopia (green-blind)
#508AEC
Tritanopia (blue-blind)
#6C96AC
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7fef;
/* rgb */ color: rgb(138, 127, 239);
/* oklch */ color: oklch(65.7% 0.162 285.5);
Tailwind
colors: {
  custom: {
    50: '#b1a4f5',
    500: '#8a7fef',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fef;
$custom-light: #b1a4f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fef",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 245.893,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65727,
    "c": 0.16235,
    "h": 285.5
  },
  "luminance": 0.26814
}

Semantic roles & 50–950 ramp

primary
#8A7FEF
secondary
#F0F3D7
accent
#DA0BC6
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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