#8A8FEC#8A8FEC

#8A8FEC is a light, vivid blue. Relative luminance 0.311; OKLCH L 68.6% C 0.136 H 279.8°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A8FEC
RGBrgb(138, 143, 236)
HSLhsl(237, 72%, 73%)
HSVhsv(237, 42%, 93%)
CMYKcmyk(41.5%, 39.4%, 0%, 7.5%)
CIE-LABlab(62.59, 21.11, -47.54)
CIE-LCHlch(62.59, 52.02, 293.94°)
OKLaboklab(68.56% 0.0232 -0.1339)
OKLCHoklch(68.56% 0.136 279.8)
XYZxyz(35.4395, 31.1028, 83.4767)
Luminance0.3110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8FEC #ECE78A
analogous
#8AC0EC #8A8FEC #B68AEC
triadic
#8A8FEC #EC8A8F #8FEC8A
tetradic
#8A8FEC #EC8AC0 #ECE78A #8AECB6
square
#8A8FEC #EC8AC0 #ECE78A #8AECB6
split-complementary
#8A8FEC #ECB68A #C0EC8A
monochromatic
#232CD8 #555DE3 #8A8FEC #BFC1F5 #E5E6FB

Accessibility & contrast

On white

2.91
#8A8FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#8A8FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #8A8FEC
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8FEC#FFFFFF#000000##000000
##8A8FEC1.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#6894EA
Tritanopia (blue-blind)
#6BA2B2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #8a8fec;
/* rgb */ color: rgb(138, 143, 236);
/* oklch */ color: oklch(68.6% 0.136 279.8);
Tailwind
colors: {
  custom: {
    50: '#b0aff2',
    500: '#8a8fec',
    950: '#000000',
  },
}
SCSS
$custom: #8a8fec;
$custom-light: #b0aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8fec",
  "rgb": {
    "r": 138,
    "g": 143,
    "b": 236
  },
  "hsl": {
    "h": 236.939,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68558,
    "c": 0.13593,
    "h": 279.8
  },
  "luminance": 0.31104
}

Semantic roles & 50–950 ramp

primary
#8A8FEC
secondary
#F2F1D9
accent
#CA11D4
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111017
muted
#807F85

Preview Lab

Preview with #8A8FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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