#8A7EFF#8A7EFF

#8A7EFF is a light, vivid blue. Relative luminance 0.275; OKLCH L 66.5% C 0.185 H 284.4°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A7EFF
RGBrgb(138, 126, 255)
HSLhsl(246, 100%, 75%)
HSVhsv(246, 51%, 100%)
CMYKcmyk(45.9%, 50.6%, 0%, 0%)
CIE-LABlab(59.47, 36.40, -62.98)
CIE-LCHlch(59.47, 72.74, 300.03°)
OKLaboklab(66.53% 0.046 -0.1792)
OKLCHoklch(66.53% 0.185 284.4)
XYZxyz(35.9868, 27.5433, 98.0086)
Luminance0.2754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7EFF #F3FF7E
analogous
#7EB3FF #8A7EFF #CA7EFF
triadic
#8A7EFF #FF8A7E #7EFF8A
tetradic
#8A7EFF #FF7EB3 #F3FF7E #7EFFCA
square
#8A7EFF #FF7EB3 #F3FF7E #7EFFCA
split-complementary
#8A7EFF #FFCA7E #B3FF7E
monochromatic
#1B04FF #5241FF #8A7EFF #C2BBFF #E3E0FF

Accessibility & contrast

On white

3.23
#8A7EFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#8A7EFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7EFF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7EFF#FFFFFF#000000##000000
##8A7EFF1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4193FF
Deuteranopia (green-blind)
#3C8BFC
Tritanopia (blue-blind)
#639AB3
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a7eff;
/* rgb */ color: rgb(138, 126, 255);
/* oklch */ color: oklch(66.5% 0.185 284.4);
Tailwind
colors: {
  custom: {
    50: '#b2a3ff',
    500: '#8a7eff',
    950: '#000000',
  },
}
SCSS
$custom: #8a7eff;
$custom-light: #b2a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7eff",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 245.581,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.66527,
    "c": 0.18503,
    "h": 284.4
  },
  "luminance": 0.27545
}

Semantic roles & 50–950 ramp

primary
#8A7EFF
secondary
#F4F7D4
accent
#E600D0
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#110F18
muted
#807F86

Preview Lab

Preview with #8A7EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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