#8A8EE2#8A8EE2

#8A8EE2 is a light, vivid blue. Relative luminance 0.302; OKLCH L 67.8% C 0.123 H 280.5°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A8EE2
RGBrgb(138, 142, 226)
HSLhsl(237, 60%, 71%)
HSVhsv(237, 39%, 89%)
CMYKcmyk(38.9%, 37.2%, 0%, 11.4%)
CIE-LABlab(61.86, 18.91, -43.16)
CIE-LCHlch(61.86, 47.12, 293.66°)
OKLaboklab(67.84% 0.0225 -0.1212)
OKLCHoklch(67.84% 0.123 280.5)
XYZxyz(33.8777, 30.2389, 75.9884)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8EE2 #E2DE8A
analogous
#8ABAE2 #8A8EE2 #B28AE2
triadic
#8A8EE2 #E28A8E #8EE28A
tetradic
#8A8EE2 #E28ABA #E2DE8A #8AE2B2
square
#8A8EE2 #E28ABA #E2DE8A #8AE2B2
split-complementary
#8A8EE2 #E2B28A #BAE28A
monochromatic
#3037C2 #595FD6 #8A8EE2 #BBBDEE #E6E7F9

Accessibility & contrast

On white

2.98
#8A8EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#8A8EE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8EE2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8EE2#FFFFFF#000000##000000
##8A8EE21.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7299E5
Deuteranopia (green-blind)
#6D92E0
Tritanopia (blue-blind)
#709EAD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a8ee2;
/* rgb */ color: rgb(138, 142, 226);
/* oklch */ color: oklch(67.8% 0.123 280.5);
Tailwind
colors: {
  custom: {
    50: '#afafeb',
    500: '#8a8ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8a8ee2;
$custom-light: #afafeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8ee2",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 226
  },
  "hsl": {
    "h": 237.273,
    "s": 60.274,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67838,
    "c": 0.12324,
    "h": 280.5
  },
  "luminance": 0.3024
}

Semantic roles & 50–950 ramp

primary
#8A8EE2
secondary
#EFEED8
accent
#C01EC8
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A8EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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