#8A7FEE#8A7FEE

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

Color values

HEX#8A7FEE
RGBrgb(138, 127, 238)
HSLhsl(246, 77%, 72%)
HSVhsv(246, 47%, 93%)
CMYKcmyk(42%, 46.6%, 0%, 6.7%)
CIE-LABlab(58.75, 31.00, -54.76)
CIE-LCHlch(58.75, 62.92, 299.52°)
OKLaboklab(65.67% 0.0432 -0.1551)
OKLCHoklch(65.67% 0.161 285.6)
XYZxyz(33.4988, 26.7538, 84.2713)
Luminance0.2676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FEE #E3EE7F
analogous
#7FACEE #8A7FEE #C27FEE
triadic
#8A7FEE #EE8A7F #7FEE8A
tetradic
#8A7FEE #EE7FAC #E3EE7F #7FEEC2
square
#8A7FEE #EE7FAC #E3EE7F #7FEEC2
split-complementary
#8A7FEE #EEC27F #ACEE7F
monochromatic
#2F1CD6 #5949E7 #8A7FEE #BBB5F5 #E6E4FB

Accessibility & contrast

On white

3.31
#8A7FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#8A7FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FEE
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FEE#FFFFFF#000000##000000
##8A7FEE1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5390F2
Deuteranopia (green-blind)
#508AEB
Tritanopia (blue-blind)
#6C96AB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7fee;
/* rgb */ color: rgb(138, 127, 238);
/* oklch */ color: oklch(65.7% 0.161 285.6);
Tailwind
colors: {
  custom: {
    50: '#b1a4f4',
    500: '#8a7fee',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fee;
$custom-light: #b1a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fee",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 245.946,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65668,
    "c": 0.161,
    "h": 285.6
  },
  "luminance": 0.26755
}

Semantic roles & 50–950 ramp

primary
#8A7FEE
secondary
#F0F3D6
accent
#D90DC5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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