#8A8EC7#8A8EC7

#8A8EC7 is a light, moderate blue. Relative luminance 0.289; OKLCH L 66.5% C 0.084 H 280.7°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8A8EC7
RGBrgb(138, 142, 199)
HSLhsl(236, 35%, 66%)
HSVhsv(236, 31%, 78%)
CMYKcmyk(30.7%, 28.6%, 0%, 22%)
CIE-LABlab(60.67, 11.70, -29.93)
CIE-LCHlch(60.67, 32.13, 291.35°)
OKLaboklab(66.53% 0.0157 -0.083)
OKLCHoklch(66.53% 0.084 280.7)
XYZxyz(30.4603, 28.8719, 57.9897)
Luminance0.2887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8EC7 #C7C38A
analogous
#8AACC7 #8A8EC7 #A48AC7
triadic
#8A8EC7 #C78A8E #8EC78A
tetradic
#8A8EC7 #C78AAC #C7C38A #8AC7A4
square
#8A8EC7 #C78AAC #C7C38A #8AC7A4
split-complementary
#8A8EC7 #C7A48A #ACC78A
monochromatic
#454A91 #6166B3 #8A8EC7 #B3B6DB #DDDEEF

Accessibility & contrast

On white

3.10
#8A8EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#8A8EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8EC7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8EC7#FFFFFF#000000##000000
##8A8EC71.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D95C9
Deuteranopia (green-blind)
#7A90C6
Tritanopia (blue-blind)
#7A98A2
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a8ec7;
/* rgb */ color: rgb(138, 142, 199);
/* oklch */ color: oklch(66.5% 0.084 280.7);
Tailwind
colors: {
  custom: {
    50: '#adafd8',
    500: '#8a8ec7',
    950: '#000000',
  },
}
SCSS
$custom: #8a8ec7;
$custom-light: #adafd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8ec7",
  "rgb": {
    "r": 138,
    "g": 142,
    "b": 199
  },
  "hsl": {
    "h": 236.066,
    "s": 35.26,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66529,
    "c": 0.08448,
    "h": 280.7
  },
  "luminance": 0.28873
}

Semantic roles & 50–950 ramp

primary
#8A8EC7
secondary
#E0DFCC
accent
#A637AE
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#101014
muted
#7F7F83

Preview Lab

Preview with #8A8EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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