#8A8CD4#8A8CD4

#8A8CD4 is a light, moderate blue. Relative luminance 0.289; OKLCH L 66.7% C 0.106 H 281.9°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A8CD4
RGBrgb(138, 140, 212)
HSLhsl(238, 46%, 69%)
HSVhsv(238, 35%, 83%)
CMYKcmyk(34.9%, 34%, 0%, 16.9%)
CIE-LABlab(60.70, 16.27, -37.17)
CIE-LCHlch(60.70, 40.57, 293.64°)
OKLaboklab(66.74% 0.0219 -0.1038)
OKLCHoklch(66.74% 0.106 281.9)
XYZxyz(31.7397, 28.9119, 66.1828)
Luminance0.2891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8CD4 #D4D28A
analogous
#8AB1D4 #8A8CD4 #AD8AD4
triadic
#8A8CD4 #D48A8C #8CD48A
tetradic
#8A8CD4 #D48AB1 #D4D28A #8AD4AD
square
#8A8CD4 #D48AB1 #D4D28A #8AD4AD
split-complementary
#8A8CD4 #D4AD8A #B1D48A
monochromatic
#3D40A6 #5D60C4 #8A8CD4 #B7B8E4 #E4E4F5

Accessibility & contrast

On white

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

On black

6.78
#8A8CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8CD4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8CD4#FFFFFF#000000##000000
##8A8CD41.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7695D7
Deuteranopia (green-blind)
#7290D2
Tritanopia (blue-blind)
#769AA6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a8cd4;
/* rgb */ color: rgb(138, 140, 212);
/* oklch */ color: oklch(66.7% 0.106 281.9);
Tailwind
colors: {
  custom: {
    50: '#aeade1',
    500: '#8a8cd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a8cd4;
$custom-light: #aeade1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8cd4",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 212
  },
  "hsl": {
    "h": 238.378,
    "s": 46.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66739,
    "c": 0.1061,
    "h": 281.9
  },
  "luminance": 0.28913
}

Semantic roles & 50–950 ramp

primary
#8A8CD4
secondary
#E8E7D2
accent
#B62CB9
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A8CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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