#8A8AFE#8A8AFE

#8A8AFE is a light, vivid blue. Relative luminance 0.307; OKLCH L 68.6% C 0.167 H 281.0°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A8AFE
RGBrgb(138, 138, 254)
HSLhsl(240, 98%, 77%)
HSVhsv(240, 46%, 100%)
CMYKcmyk(45.7%, 45.7%, 0%, 0.4%)
CIE-LABlab(62.28, 29.14, -57.94)
CIE-LCHlch(62.28, 64.86, 296.70°)
OKLaboklab(68.62% 0.0321 -0.1644)
OKLCHoklch(68.62% 0.167 281)
XYZxyz(37.4537, 30.7341, 97.7055)
Luminance0.3074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8AFE #FEFE8A
analogous
#8AC4FE #8A8AFE #C48AFE
triadic
#8A8AFE #FE8A8A #8AFE8A
tetradic
#8A8AFE #FE8AC4 #FEFE8A #8AFEC4
square
#8A8AFE #FE8AC4 #FEFE8A #8AFEC4
split-complementary
#8A8AFE #FEC48A #C4FE8A
monochromatic
#1111FD #4D4DFD #8A8AFE #C7C7FF #E1E1FF

Accessibility & contrast

On white

2.94
#8A8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#8A8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8AFE
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8AFE#FFFFFF#000000##000000
##8A8AFE1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A9BFF
Deuteranopia (green-blind)
#5392FB
Tritanopia (blue-blind)
#62A2B8
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #8a8afe;
/* rgb */ color: rgb(138, 138, 254);
/* oklch */ color: oklch(68.6% 0.167 281.0);
Tailwind
colors: {
  custom: {
    50: '#b2acff',
    500: '#8a8afe',
    950: '#000000',
  },
}
SCSS
$custom: #8a8afe;
$custom-light: #b2acff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8afe",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 240,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.68623,
    "c": 0.16746,
    "h": 281
  },
  "luminance": 0.30736
}

Semantic roles & 50–950 ramp

primary
#8A8AFE
secondary
#F7F7D4
accent
#E600E5
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111018
muted
#807F86

Preview Lab

Preview with #8A8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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