#8A7FE7#8A7FE7

#8A7FE7 is a light, vivid blue. Relative luminance 0.264; OKLCH L 65.3% C 0.151 H 286.2°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A7FE7
RGBrgb(138, 127, 231)
HSLhsl(246, 68%, 70%)
HSVhsv(246, 45%, 91%)
CMYKcmyk(40.3%, 45%, 0%, 9.4%)
CIE-LABlab(58.37, 29.05, -51.46)
CIE-LCHlch(58.37, 59.10, 299.44°)
OKLaboklab(65.26% 0.0424 -0.1454)
OKLCHoklch(65.26% 0.151 286.2)
XYZxyz(32.4903, 26.3504, 78.9601)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FE7 #DCE77F
analogous
#7FA8E7 #8A7FE7 #BE7FE7
triadic
#8A7FE7 #E78A7F #7FE78A
tetradic
#8A7FE7 #E77FA8 #DCE77F #7FE7BE
square
#8A7FE7 #E77FA8 #DCE77F #7FE7BE
split-complementary
#8A7FE7 #E7BE7F #A8E77F
monochromatic
#3625C6 #5B4BDD #8A7FE7 #B9B3F1 #E7E5FA

Accessibility & contrast

On white

3.35
#8A7FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#8A7FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FE7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FE7#FFFFFF#000000##000000
##8A7FE71.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#588FEB
Deuteranopia (green-blind)
#5689E5
Tritanopia (blue-blind)
#6F94A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a7fe7;
/* rgb */ color: rgb(138, 127, 231);
/* oklch */ color: oklch(65.3% 0.151 286.2);
Tailwind
colors: {
  custom: {
    50: '#b0a4ef',
    500: '#8a7fe7',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fe7;
$custom-light: #b0a4ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fe7",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 231
  },
  "hsl": {
    "h": 246.346,
    "s": 68.421,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65261,
    "c": 0.15148,
    "h": 286.2
  },
  "luminance": 0.26352
}

Semantic roles & 50–950 ramp

primary
#8A7FE7
secondary
#ECEFD2
accent
#D015BD
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F16
muted
#807F84

Preview Lab

Preview with #8A7FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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