#8A8EE4#8A8EE4

#8A8EE4 is a light, vivid blue. Relative luminance 0.304; OKLCH L 67.9% C 0.126 H 280.5°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A8EE4
RGBrgb(138, 142, 228)
HSLhsl(237, 63%, 72%)
HSVhsv(237, 39%, 89%)
CMYKcmyk(39.5%, 37.7%, 0%, 10.6%)
CIE-LABlab(61.95, 19.46, -44.12)
CIE-LCHlch(61.95, 48.22, 293.80°)
OKLaboklab(67.94% 0.0229 -0.124)
OKLCHoklch(67.94% 0.126 280.5)
XYZxyz(34.1538, 30.3493, 77.4422)
Luminance0.3035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8EE4 #E4E08A
analogous
#8ABBE4 #8A8EE4 #B38AE4
triadic
#8A8EE4 #E48A8E #8EE48A
tetradic
#8A8EE4 #E48ABB #E4E08A #8AE4B3
square
#8A8EE4 #E48ABB #E4E08A #8AE4B3
split-complementary
#8A8EE4 #E4B38A #BBE48A
monochromatic
#2E34C6 #585ED9 #8A8EE4 #BCBEEF #E6E7F9

Accessibility & contrast

On white

2.97
#8A8EE4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.07
#8A8EE4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8EE4
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8EE4#FFFFFF#000000##000000
##8A8EE41.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7199E7
Deuteranopia (green-blind)
#6C93E2
Tritanopia (blue-blind)
#6F9FAE
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a8ee4;
/* rgb */ color: rgb(138, 142, 228);
/* oklch */ color: oklch(67.9% 0.126 280.5);
Tailwind
colors: {
  custom: {
    50: '#afafed',
    500: '#8a8ee4',
    950: '#000000',
  },
}
SCSS
$custom: #8a8ee4;
$custom-light: #afafed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8ee4",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 228
  },
  "hsl": {
    "h": 237.333,
    "s": 62.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67942,
    "c": 0.12607,
    "h": 280.5
  },
  "luminance": 0.30351
}

Semantic roles & 50–950 ramp

primary
#8A8EE4
secondary
#F0EFD9
accent
#C21BCA
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A8EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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