#8A8EFE#8A8EFE

#8A8EFE is a light, vivid blue. Relative luminance 0.319; OKLCH L 69.4% C 0.162 H 279.7°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A8EFE
RGBrgb(138, 142, 254)
HSLhsl(238, 98%, 77%)
HSVhsv(238, 46%, 100%)
CMYKcmyk(45.7%, 44.1%, 0%, 0.4%)
CIE-LABlab(63.26, 26.82, -56.38)
CIE-LCHlch(63.26, 62.43, 295.44°)
OKLaboklab(69.37% 0.0274 -0.1598)
OKLCHoklch(69.37% 0.162 279.7)
XYZxyz(38.0382, 31.9031, 97.9003)
Luminance0.3191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8EFE #FEFA8A
analogous
#8AC8FE #8A8EFE #C08AFE
triadic
#8A8EFE #FE8A8E #8EFE8A
tetradic
#8A8EFE #FE8AC8 #FEFA8A #8AFEC0
square
#8A8EFE #FE8AC8 #FEFA8A #8AFEC0
split-complementary
#8A8EFE #FEC08A #C8FE8A
monochromatic
#1119FD #4D53FD #8A8EFE #C7C9FF #E1E2FF

Accessibility & contrast

On white

2.85
#8A8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#8A8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8EFE
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8EFE#FFFFFF#000000##000000
##8A8EFE1.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619EFF
Deuteranopia (green-blind)
#5995FB
Tritanopia (blue-blind)
#62A5BA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #8a8efe;
/* rgb */ color: rgb(138, 142, 254);
/* oklch */ color: oklch(69.4% 0.162 279.7);
Tailwind
colors: {
  custom: {
    50: '#b2afff',
    500: '#8a8efe',
    950: '#000000',
  },
}
SCSS
$custom: #8a8efe;
$custom-light: #b2afff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8efe",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 237.931,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.69366,
    "c": 0.1621,
    "h": 279.7
  },
  "luminance": 0.31905
}

Semantic roles & 50–950 ramp

primary
#8A8EFE
secondary
#F7F6D4
accent
#DE00E6
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111018
muted
#807F86

Preview Lab

Preview with #8A8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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