#8A7FE9#8A7FE9

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

Color values

HEX#8A7FE9
RGBrgb(138, 127, 233)
HSLhsl(246, 71%, 71%)
HSVhsv(246, 45%, 91%)
CMYKcmyk(40.8%, 45.5%, 0%, 8.6%)
CIE-LABlab(58.47, 29.61, -52.41)
CIE-LCHlch(58.47, 60.19, 299.46°)
OKLaboklab(65.38% 0.0426 -0.1482)
OKLCHoklch(65.38% 0.154 286)
XYZxyz(32.7744, 26.4640, 80.4562)
Luminance0.2646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7FE9 #DEE97F
analogous
#7FA9E9 #8A7FE9 #BF7FE9
triadic
#8A7FE9 #E98A7F #7FE98A
tetradic
#8A7FE9 #E97FA9 #DEE97F #7FE9BF
square
#8A7FE9 #E97FA9 #DEE97F #7FE9BF
split-complementary
#8A7FE9 #E9BF7F #A9E97F
monochromatic
#3423CB #5A4BE0 #8A7FE9 #BAB3F2 #E7E5FB

Accessibility & contrast

On white

3.34
#8A7FE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#8A7FE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7FE9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7FE9#FFFFFF#000000##000000
##8A7FE91.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5790ED
Deuteranopia (green-blind)
#558AE7
Tritanopia (blue-blind)
#6E94A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #8a7fe9;
/* rgb */ color: rgb(138, 127, 233);
/* oklch */ color: oklch(65.4% 0.154 286.0);
Tailwind
colors: {
  custom: {
    50: '#b0a4f0',
    500: '#8a7fe9',
    950: '#000000',
  },
}
SCSS
$custom: #8a7fe9;
$custom-light: #b0a4f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7fe9",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 233
  },
  "hsl": {
    "h": 246.226,
    "s": 70.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65376,
    "c": 0.15421,
    "h": 286
  },
  "luminance": 0.26465
}

Semantic roles & 50–950 ramp

primary
#8A7FE9
secondary
#EDF0D4
accent
#D313BF
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#110F17
muted
#807F85

Preview Lab

Preview with #8A7FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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