#8A8EE5#8A8EE5

#8A8EE5 is a light, vivid blue. Relative luminance 0.304; OKLCH L 68.0% C 0.127 H 280.4°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A8EE5
RGBrgb(138, 142, 229)
HSLhsl(237, 64%, 72%)
HSVhsv(237, 40%, 90%)
CMYKcmyk(39.7%, 38%, 0%, 10.2%)
CIE-LABlab(62.00, 19.74, -44.60)
CIE-LCHlch(62.00, 48.77, 293.87°)
OKLaboklab(67.99% 0.0231 -0.1254)
OKLCHoklch(67.99% 0.127 280.4)
XYZxyz(34.2930, 30.4050, 78.1754)
Luminance0.3041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8EE5 #E5E18A
analogous
#8ABBE5 #8A8EE5 #B48AE5
triadic
#8A8EE5 #E58A8E #8EE58A
tetradic
#8A8EE5 #E58ABB #E5E18A #8AE5B4
square
#8A8EE5 #E58ABB #E5E18A #8AE5B4
split-complementary
#8A8EE5 #E5B48A #BBE58A
monochromatic
#2C33C8 #585EDA #8A8EE5 #BCBEF0 #E6E7F9

Accessibility & contrast

On white

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

On black

7.08
#8A8EE5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8EE5
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8EE5#FFFFFF#000000##000000
##8A8EE51.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7099E8
Deuteranopia (green-blind)
#6B93E3
Tritanopia (blue-blind)
#6F9FAF
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #8a8ee5;
/* rgb */ color: rgb(138, 142, 229);
/* oklch */ color: oklch(68.0% 0.127 280.4);
Tailwind
colors: {
  custom: {
    50: '#afafed',
    500: '#8a8ee5',
    950: '#000000',
  },
}
SCSS
$custom: #8a8ee5;
$custom-light: #afafed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8ee5",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 229
  },
  "hsl": {
    "h": 237.363,
    "s": 63.636,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67994,
    "c": 0.12748,
    "h": 280.4
  },
  "luminance": 0.30406
}

Semantic roles & 50–950 ramp

primary
#8A8EE5
secondary
#F1F0DA
accent
#C41ACB
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A8EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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